what is ls used for Flashcards
(27 cards)
What does the command ‘ls’ do in Linux?
It lists the files and directories in the current directory.
True or False: The ‘chmod’ command is used to change file permissions.
True
Fill in the blank: The home directory for the root user is located at _____.
/root
Which command is used to display the current working directory?
pwd
What does ‘grep’ stand for?
Global Regular Expression Print
What is the purpose of the ‘mv’ command?
It is used to move or rename files and directories.
True or False: In Linux, everything is treated as a file.
True
What symbol is used to represent the home directory in Linux?
~
Which command would you use to create a new directory?
mkdir
What does the ‘rm’ command do?
It removes files or directories.
Fill in the blank: The default text editor in many Linux distributions is ___.
nano
Which command is used to copy files in Linux?
cp
What does the ‘man’ command do?
It displays the manual pages for other commands.
True or False: The ‘sudo’ command allows a permitted user to run a command as the superuser.
True
What is a shell in the context of Linux?
A shell is a command-line interface that allows users to interact with the operating system.
Which command is used to view the contents of a text file?
cat
Fill in the blank: The Linux kernel is responsible for managing _____.
hardware resources
What does ‘tar’ stand for in the context of Linux?
Tape Archive
Which command can be used to check disk usage?
df
True or False: The ‘ps’ command is used to display information about running processes.
True
What is the purpose of the ‘echo’ command?
It displays a line of text or a variable value.
What does the ‘ifconfig’ command do?
It displays or configures network interface parameters.
Which command would you use to search for a specific pattern in files?
grep
Fill in the blank: The file system structure in Linux is organized in a _____.
tree hierarchy