< Previous | Contents | Next >
Try Some Simple Commands
Now that we have learned to type, let's try a few simple commands. The first one is
date. This command displays the current time and date.
[me@linuxbox ~]$ date
Fri Jan 8 15:09:41 EST 2016
[me@linuxbox ~]$ date
Fri Jan 8 15:09:41 EST 2016
A related command is cal which, by default, displays a calendar of the current month.

[me@linuxbox ~]$ cal
January 2016
| 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 | 
To see the current amount of free space on your disk drives, enter df:
[me@linuxbox ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 15115452 5012392 9949716 34% /
/dev/sda5 59631908 26545424 30008432 47% /home
[me@linuxbox ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 15115452 5012392 9949716 34% /
/dev/sda5 59631908 26545424 30008432 47% /home
Try Some Simple Commands
| /dev/sda1 | 147764 | 17370 | 122765 13% /boot | 
| tmpfs | 256856 | 0 | 256856 0% /dev/shm | 
Likewise, to display the amount of free memory, enter the free command.
| [me@linuxbox ~]$ free | ||||
| total used | free | shared | buffers | cached | 
| Mem: 513712 503976 | 9736 | 0 | 5312 | 122916 | 
| -/+ buffers/cache: 375748 | 137964 | |||
| Swap: 1052248 104712 | 947536 | |||
 
 
 Documentation
 Documentation