Linux+ Flashcards
Test questions
What command is used to list files in a directory?
ls
True or False: The root user has the highest level of access in a Linux system.
True
Fill in the blank: The __________ command is used to change the current directory.
cd
Which command is used to display the current working directory?
pwd
What does ‘chmod’ command do?
Changes the permissions of a file or directory.
Select the correct command to copy files: a) cp b) mv c) rm
a) cp
What is the default shell in most Linux distributions?
Bash
True or False: Linux is a multi-user operating system.
True
What file contains user account information in Linux?
/etc/passwd
Which command is used to display the contents of a file?
cat
Fill in the blank: The __________ command is used to remove files.
rm
What is the purpose of the ‘grep’ command?
To search for specific patterns in files.
Select the correct command to move files: a) cp b) mv c) ls
b) mv
What does the ‘ps’ command display?
Currently running processes.
True or False: The ‘sudo’ command allows a permitted user to run a command as the superuser.
True
What is the primary configuration file for network settings in Linux?
/etc/network/interfaces
Fill in the blank: The __________ command is used to view system log files.
tail
What does ‘df’ command report?
Disk space usage.
Which command is used to update the package index on Debian-based systems?
apt update
What is the purpose of the ‘tar’ command?
To archive files.
True or False: Linux file permissions are represented by a three-character string.
True
What command would you use to change a file’s ownership?
chown
Select the correct command to view the manual for another command: a) help b) man c) info
b) man
What does the ‘ifconfig’ command do?
Configures network interfaces.
Fill in the blank: The __________ command can be used to create symbolic links.
ln -s
What does ‘cron’ allow you to do?
Schedule tasks to run at specified times.
True or False: The ‘scp’ command is used for secure file transfer over SSH.
True