Linux Commands (st2)
Linux Commands (st2)
Uptime commands:
uptime = display current time, systems uptime and cpu usage of 1,5 & 15 minutes
lscpu = to check cpu detalils
uptime -h = help
uptime -p = display only uptime
uptime -s = display system up since
uptime -V = display uptime version
Hostname commnads:
hostname = display long host name
hostname -a = display alias name of the host system
hostname -A = display all long host name
hostname -b = set deafult hostname if not available
hostname -d = display domain name, empty if not available
hostname -f = display long host name
hostname -i = display ip address of host
hostname -I = display all ip adreesses of host
hostname -s = display short host name
hostname -V = display version of hostname
hostname new_hostname = to set new hostname
hostname -F file.txt = set hostname from file
Which commands:
which cat = display path of cat command
which -a cat = display all matching path of cat command
Traceroute commands:
treaceroute www.chitkara.edu.in = display the routes while connecting to server
traceroute -In www.chitkara.edu.in = display the routes details while connecting to server
traceroute -w15 www.chitkara.edu.in = wait time
traceroute www.chitkara.edu.in -n = to disable hostname
traceroute www.chitkara.edu.in -w 5 = wait time
traceroute -n www.chitkara.edu.in -q 3 = configure number of queries per hope
traceroute -n www.chitkara.edu.in -f 8 = configure TTL value to start with