Code Scrappers


Basic Unix Commands


: date command -

~ It is used to display the date.

saarthak@DESKTOP-N01EJET:~$ date
Mon Jul 22 23:08:38 DST 2019
            



: cal command -

~ It is used to display the calender.

saarthak@DESKTOP-N01EJET:~$ cal
    July 2019
Su Mo Tu We Th Fr Sa
1  2  3  4  5  6
7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
          



: whoami command -

~ It prints user's name.

saarthak@DESKTOP-N01EJET:~$ whoami
saarthak
            



: uptime command -

~ It prints current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes

saarthak@DESKTOP-N01EJET:~$ uptime
23:17:33 up  2:20,  0 users,  load average: 0.52, 0.58, 0.59
            



: bc command -

~ It provides a programable calculator.

saarthak@DESKTOP-N01EJET:~$ bc
bc 1.07.1

5*10+16
66
            



: uname command -

~ It reports basic information about a computer's software and hardware .

saarthak@DESKTOP-N01EJET:~$ uname
Linux
            



: pwd command -

~ It writes the full pathname of the current working directory to the standard output .

saarthak@DESKTOP-N01EJET:~$ pwd
/home/saarthak