Commands 0.1 Flashcards
What command is used to update the package list in Ubuntu?
sudo apt update
True or False: The command ‘sudo apt upgrade’ upgrades installed packages to their latest versions.
True
Fill in the blank: The command ‘sudo apt _______’ is used to install a new package.
install
What command is used to remove a package in Ubuntu?
sudo apt remove
Which command is used to search for a package in the repositories?
apt search
What does the command ‘sudo apt autoremove’ do?
It removes unnecessary packages that were automatically installed to satisfy dependencies for other packages and are no longer needed.
True or False: The command ‘sudo apt clean’ clears out the local repository of retrieved package files.
True
What command can you use to check the disk usage of your file system?
df -h
What is the command to display the current working directory?
pwd
Which command is used to change directories in Ubuntu?
cd
What command is used to list files and directories in the current directory?
ls
True or False: The command ‘mkdir’ is used to delete a directory.
False
What command do you use to create a new directory?
mkdir
Fill in the blank: The command ‘rm -______’ is used to remove directories and their contents recursively.
r
What command is used to copy files or directories?
cp
Which command is used to move or rename files and directories?
mv
True or False: The command ‘touch’ is used to create an empty file.
True
What command can be used to display the contents of a text file?
cat
What is the command to view the manual of a command?
man
Fill in the blank: The command ‘______ -l’ provides a detailed list of files and directories.
ls
What command is used to show the system’s IP address?
ip addr
True or False: The command ‘shutdown’ is used to restart the system.
False
What command is used to restart the Ubuntu system?
sudo reboot
What command is used to shut down the Ubuntu system?
sudo shutdown