Please enable JavaScript.
Coggle requires JavaScript to display documents.
Linux Commands ($date Will display current date and time ($date +%a Will…
Linux Commands
$date
Will display current date and time
$date +%a
Will display present day in short
$date +%B
Will display present Month
$date +%A
Will display present day
$date +%b
Will display present Month in short
$cal
Will display calendar for current month
$cal 2019
Will display calendar for year 2019
$cal 04 2019
Will display calendar for 4th month of year 2019
$uname
Will display type of OS (Linux)
$uname -r
Will display release of kernel
$uname -v
Will display version of kernel
$echo hi
will display hi on terminal
$whoami
Displays your username
$who
Displays all usernames
$cat abc
Displays content of file abc
$cat>abc
Creates or overwrites content of file abc
$cat>>abc
Appends to content of file abc
$pwd
Displays present working directory
$ls
Displays all files and directories in pwd
$rm fname
Deletes file fname
$rmdir dname
Deletes directory dname
$cp source dest
Copies file from source to dest
$mv source dest
Moves file from source to destination
$cd abc
Changes pwd to abc