Basic Commands
pwd command:
The 'pwd' is the basic Linux commands. It is used for prints the absolute path to current working directory.
Syntax: $pwd
/home/tias
cal command:
The 'cal' command is the command for the 'calender'. This command is use to display the calender of current month.
Syntax: $cal
date command:
The date command is use to display the current date of the system. As its name shows it work as.
Syntax: $date
If we only want to show the time we can use 'date +%T' . It show the time in this format
'hh:mm:ss'.
Syntax: $date +%T
whoami command:
This command is used to reveals the user who is currently logged in in the system.
Syntax: $whoami
tty command:
The 'tty' command is used to print the file name of the terminal connected to standard input.
Syntax: $tty
id command:
This command is used to prints user and groups (UID and GID) of the current user.
Syntax: $id
Ls command: It is used to show the lists of directories content of files and directories.
Syntax: $tty
Ls command: It is used to show the lists of directories content of files and directories.
Syntax: $tty
Options of
No comments:
Post a Comment