What does the command ‘ls’ do in Linux?
It lists the files and directories in the current directory.
True or False: The root user has the highest level of access in a Linux system.
True
Fill in the blank: The command to change the working directory is ____.
cd
What command is used to copy files in Linux?
cp
Which command is used to remove files in Linux?
rm
What does the ‘-r’ option do when used with the ‘rm’ command?
It removes directories and their contents recursively.
What is the purpose of the ‘chmod’ command?
It changes the file permissions.
What is a shell in the context of Linux?
A shell is a command-line interface for interacting with the operating system.
True or False: In Linux, file names are case-sensitive.
True
What command can you use to display the current working directory?
pwd
Which command is used to view the contents of a file?
cat
What does the ‘man’ command do?
It displays the manual pages for commands.
What is the default text editor in many Linux distributions?
nano
Fill in the blank: The command to create a new directory is ____.
mkdir
What does the ‘touch’ command do?
It creates an empty file or updates the timestamp of an existing file.
What is the purpose of the ‘sudo’ command?
It allows a permitted user to execute a command as the superuser or another user.
What does ‘grep’ do?
It searches for a specified pattern in files.
What is a package manager in Linux?
A tool that automates the process of installing, upgrading, configuring, and removing software packages.
True or False: The ‘echo’ command is used to display text in the terminal.
True
What does the command ‘df -h’ show?
It displays disk space usage in a human-readable format.
What is the purpose of the ‘/etc/passwd’ file?
It stores user account information.
Fill in the blank: The command to move files is ____.
mv
What does the ‘top’ command do?
It displays real-time system processes and resource usage.
What is a symbolic link in Linux?
A file that points to another file or directory.