Posts Tagged ‘terminal’

SuperUser in Linux

Posted: April 3, 2014 in PC hacking
Tags: , , , ,

Many of you (geeks) that worked in Ubuntu platform.If not, check out this post for some root commands for Ubuntu or any Linux terminal.Linux is not so user friendly as windows.It mostly deals with the terminal commands.Therefore here are some commands for the superuser or (root):

sudo -i                   (enabling root account)
sudo passwd root          (change or set sudo password)
sudo passwd -dl root      (disabling root account)
sudo -k                   (make sure sudo asks for password every time)
sudo -i -u <username>     (login with different account)

Here sudo means “superuser do”.

Hope you like it.Comment your queries.

arp:                 Command is mostly used for checking existing ethernet connectivity and IP address

ifconfig:         Command line tool configures or checks all network cards/interfaces

netstat:          Summary of network connections and status of sockets

nslookup:      Checks the domain name and IP information of a server

ping:                Sends test packets to a specified server to check if it is responding properly

ps:                     Lists all existing processes on the server

route:              Lists the routing tables for your server

shred:              Deletes a file securely by overwritting its contents.

traceroute:   Traces the existing network routing for a remote or local server

To know the internal ipaddress type

/sbin/ifconfig eth0 | grep “inet addr” | awk -F: ‘{print $2}’ | awk ‘{print $1}’  in the terminal

Here eth0 is not fixed,you have to change it depending on the ethernet connection you get.

Like and share it.