Basic commands a system admin need to know.
- tty – tty command will tells you current terminal.
#tty /dev/pts/1
- whoami- whoami commands tells you current logged-in username
#whoami root
- which- which command will give you the path of the command
#which tty /usr/bin/tty
- set- set command prints and sets the shell variables or environment variables
- echo command will prints the output to screen
#echo $PWD
print current working directory to the screen.
- history-history command will tells you the command history
- clear or ctrl+l- This will clear the terminal screen.
- pwd-pwd command will give you the current working directory
- cd- cd command change the directory to specified one.
#cd will change the working directory to root. #cd
- ls- ls command will list the files and directories.