uname -aLinux runnervmtr4k5 6.17.0-1022-azure #22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
In this chapter, we will explore commands that will allow us to
| Command | Description |
|---|---|
uname |
Display important information about the system |
free |
Display free, used, swap memory in the system |
df |
Display file system disk space usage |
exit |
Exit the terminal |
sudo |
Run command as super user |
shutdown |
Shutdown the system |
The uname command is used to view important information about the system. Using additional options, we can
| Command | Description |
|---|---|
uname |
Print details about the current machine and the operating system running on it |
uname -mp |
Hardware related information; machine & processor |
uname -srv |
Software related information; operating system, release number and version |
uname -n |
Nodename of the system |
uname -a |
Print all available information system |
uname -aLinux runnervmtr4k5 6.17.0-1022-azure #22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
free total used free shared buff/cache available
Mem: 16373448 1612504 10827812 49996 4337816 14760944
Swap: 3145724 0 3145724
dfFilesystem 1K-blocks Used Available Use% Mounted on
/dev/root 151263856 62460532 88786940 42% /
tmpfs 8186724 84 8186640 1% /dev/shm
tmpfs 3274692 1020 3273672 1% /run
tmpfs 5120 0 5120 0% /run/lock
efivarfs 131072 32 131036 1% /sys/firmware/efi/efivars
/dev/sda16 901520 65012 773380 8% /boot
/dev/sda15 106832 6250 100582 6% /boot/efi
tmpfs 1637344 12 1637332 1% /run/user/1001
In this section, let us look at a few other useful commands that will allow us to
| Command | Description |
|---|---|
time |
See how long a command takes to execute |
sleep |
Delay activity in seconds |
sleep 1m |
Delay activity in minutes |
sleep 1h |
Delay activity in hours |
history |
Display command history list with line numbers |
history -c |
Clear the command history list |
Below are a few funny commands for you to try out. Use sudo apt-get install to install fortune and banner before trying them.
| Command | Description |
|---|---|
fortune |
Poignant, inspirational & silly phrases |
yes |
Output a string repeatedly until killed |
banner |
ASCII banner |
rev |
Reverse each character |
In R, we can use Sys.sleep() to delay activity and history() to view command history.
| Command | R |
|---|---|
sleep |
Sys.sleep() |
history |
history() |
uname -mp (hardware: machine and processor), uname -srv (software: OS, release, version), and uname -a (all information). State which option you used for each and what you observed.free and df without options. Describe in one sentence each what memory/swap details and disk-space details you observe. (Git Bash users: these commands are unavailable — run them in the Tier 0 Posit Cloud project instead.)time sleep 2 — the timing report should show about 2 seconds. Then run history and find those commands in the list with their line numbers. Do not run history -c for this exercise.