Comandos Linux Flashcards
What command is used to list files in a directory?
ls
True or False: The ‘cd’ command is used to change directories.
True
Fill in the blank: The command ‘_____ -l’ provides a detailed listing of files.
ls
What command would you use to copy files?
cp
What does the ‘rm’ command do?
Removes/deletes files or directories.
Which command is used to move or rename files?
mv
True or False: The ‘mkdir’ command creates a new directory.
True
What command can be used to view the contents of a file?
cat
Which command is used to display the current working directory?
pwd
What does the ‘chmod’ command do?
Changes file permissions.
What command would you use to search for a text string in a file?
grep
Fill in the blank: The command ‘_____ -r’ will remove a directory and its contents recursively.
rm
What is the purpose of the ‘touch’ command?
Creates an empty file or updates the timestamp of an existing file.
True or False: The ‘man’ command is used to access the manual pages for other commands.
True
What command is used to display system information?
uname
Which command is used to change the owner of a file?
chown
What does the ‘df’ command display?
Disk space usage.
Fill in the blank: The command ‘_____ -h’ displays disk usage in a human-readable format.
df
What command would you use to find out the processes running on the system?
ps
True or False: The ‘kill’ command is used to terminate processes.
True
What command is used to download files from the internet?
wget
Fill in the blank: To see the contents of a compressed file, you would use ‘_____’.
tar
What command is used to install packages on Debian-based systems?
apt-get
What does the ‘ping’ command do?
Tests network connectivity.