Linux System Administration Commands
Test your knowledge of Linux commands for user management, file operations, security, and system administration.
Questions
What does it
mean for a program to run in the background?
- A
program is running but not visible to the user. - A
program is running just minimized. - program is running behind an already max running program
- The
program is not running at all.
The command cd
does what in Linux?
- Moves
a folder - Changes
name of directory you are working in. - Changes
current directory you are working in. - Deletes
the
current directory you are working in.
What is the
command to check the firewall status?
- Sudo
firewall status - Sudo
firewall enable/disable - Sudo ufw status
- Sudo ufw
enable
What is the command to change password policies in Linux?
- Sudo change username
- sudo chage username
- Sudo chage –l username
- Sudo change –l username
What is the Linux command for adding a new user, username?
- Sudo addusr
username - Sudo aduser
username - Sudo
apt-get adduser
username - a)Sudo adduser
username
In linux what is the default status of the firewall?
- Enable
- Disable
- N/A
- Waiting
The guest account should have passwords?
- True
- False
All users should have Passwords
- True
- False
Which Linux command does not update Graphical interface?
- sudo apt-get install gnome-session-fallback
- sudo apt-get install firestarter
- sudo apt-get interface
- sudo apt-get install ubutu desktop
What should the minimum password age be?
- 5days
- <5 days
- 1day
- 10day
Command to install Clamav Antivirus in linux
- sudo apt-get install clamav
- sudo nano install clamav
- install clamav
- sudo apt-get clamav
linux command to enable firewall in linix
- sudo ufw enable
- sudo ufw starter
- ufw enable
- sudo enable ufw
command to list all of the files in a directory
- pwd
- ls
- ls -a
- ls -all
File names that begin with a ______ character are hidden.
- #
- .
- $
- |
command to print the name of the working directory
- print wd
- pwd
- pwd -p
- pwd -d
command that lists all of the directories from the directory you are in.
- ls
- ls -a
- ls |a
- list
Create directories tacos1 and tacos2 inside the tacohouse directory
- mkdir tacohouse/tacos1 tacos2
- cd tacohouse
- mkdir tacohouse
- mkdir tacos 1 tacos 2
command used to copy files and directories
- cp
- (cp = copy)
The __ command is used to remove (delete files & directories
- rm
- remove
- rm -del
- rm -dir