Basic Linux Commands
B. pwd (print working directory)
A Linux command displaying an absolute path to (i.e. full filename of) the current working directory is called: A. mv B. pwd C. rm D. dir
B. sudo
A Linux command that allows for modifying security privileges in order to be able to execute a single command that requires root access permissions is called: A. id B. sudo C. usermod D. su
D. mv (move)
A Linux command used for transferring files/directories to a different directory is called: A. replace B. export C. move D. mv
C. passwd
A Linux command-line command allowing a user to change his/her own password is known as: A. pwd B. pass C. passwd D. password
A. ifconfig
A Linux command-line utility used for displaying and modifying network interface configuration settings is called: A. ifconfig B. net config C. ipconfig D. networksetup
D. grep (Global regular expression print)
A command-line command in Linux that allows to search files for lines containing a match to a given pattern is called: A. rm B. chmod C. find D. grep
B. rm (remove)
A command-line command in Linux used for deleting files and directories is known as: A. erase B. rm C. del D. edit
C. dd (called dd because cc is already in use by C compiler)
A low-level utility that can be used for creating/restoring filesystem backup copies in Linux is called: A. fsutil B. diskpart C. dd D. format
True
A package management system for Red Hat and Red Hat-based Linux distributions is known as RPM. True False
B. shutdown
The following command can be used for turning off or restarting a Linux host. A. reboot B. shutdown C. exit D. taskkill
A. Changes file access permissions
What is the function of the Linux chmod (change mode) command? A. Changes file access permissions B. Changes file owner and group permissions C. Compares the contents of two files or sets of files D. Changes the Linux command prompt
C. Changes file owner and group permissions
What is the function of the Linux chown command? A. Changes the Linux command prompt B. Compares the contents of two files or sets of files C. Changes file owner and group permissions D. Changes file access permissions
C. mv
What is the name of a Linux command used for renaming files and directories? A. rm B. ps C. mv D. ls
A. ps (process status)
What is the name of a Linux command-line utility used for reporting statistics on running processes? A. ps B. tasklist C. nbtstat D. id
A. Yum
What is the name of a Linux utility used for managing software packages on Red Hat and Red Hat-based Linux distributions? A. Yum B. APT C. apt-get D. GRUB
A. cd (change directory)
Which of the Linux command-line commands listed below is used for directory traversal? A. cd B. dir C. ps D. dig
D. su (substitute user)
Which of the answers listed below refers to a Linux command that allows for assuming the identity of a different system user and executing commands with security privileges of that user account? A. sync B. id C. usermod D. su
A. cp (copy)
Which of the answers listed below refers to a Unix command for copying files and directories? A. cp B. copy C. xcopy D. robocopy
C. vi (visual)
Which of the answers listed below refers to a command used for invoking a text editor in Unix-like operating systems? A. edit B. notepad C. vi D. bcdedit
B. APT
Which of the answers listed below refers to a package management system most often used on Debian and Debian-based Linux distributions? A. KDE B. APT C. Yum D. RPM
D. iwconfig
Which of the following answers refers to a Linux command-line command used for configuring network interface parameters specific to the wireless communication? A. net config B. ifconfig C. networksetup D. iwconfig
D. apt-get (Advanced packaging tool)
Which of the following answers refers to a software tool used for searching and installing software packages on Debian and Debian-based Linux distributions? A. RPM B. apt-rpm C. Yum D. apt-get
B. cd ..
Which of the following commands allows for moving one level up in Linux directory tree? A. cd - B. cd .. C. cd / D. cd ~
B. ls (list)
Which of the following commands in Linux is used to display information about files and directories contained within the current working directory? A. pwd B. ls C. grep D. ps
A. Ctrl + C
Which of the following key combinations allows to terminate the current process in Linux shell? A. Ctrl + C B. Ctrl + A C. Ctrl + E D. Ctrl + L