System and Utility Commands Flashcards
What is the command to have most of the information about the system?
uname -a
What is the command to have the user ID and group ID?
id
What is the command to display the date, time and time zone?
date
What is the command to display the calendar of the current month?
cal
What is the command to display the calendar of a particular year?
cal [year]
What is the command to see how long a command take to execute?
time [command to execute]
What is the command to display the content of a compressed files?
zcat
What is the command to connect an external device file system?
mount
What is the command to exit the current shell?
exit
What is the command to clear the terminal in Linux?
clear
What is the command to see how long the machine has been up?
uptime
What is the command to create a command shortcut?
alias [shorcut command]=’[command]’
How to remove a shorcut made with alias?
unalias [shortcut]
What is the command to add a new group?
groupadd [group name]
What is the command to add a user to a group?
usermod -a -G [group name] [username]