Exam Compass - Common Linux Commands Quiz Flashcards
Which Linux command allows to display information about files and directories contained within the current working directory?
pwd
ls
grep
ps
ls
A Linux command displaying an absolute path to (i.e., full filename of) the current working directory is called:
mv
pwd
rm
dir
pwd
Which Linux command-line command is used for transferring files/directories to a different directory?
replace
export
move
mv
mv
What is the name of the Linux command used for renaming files and directories?
rm
ps
mv
ls
mv
Which of the Linux commands listed below allows for copying files and directories?
cp
copy
xcopy
robocopy
cp
A command-line command in Linux used for deleting files and directories is known as:
erase
rm
del
edit
rm
What is the function of the Linux chmod command?
Changes file access permissions
Changes file owner and group permissions
Compares the contents of two files or sets of files
Changes the Linux command prompt
Changes file access permissions
What is the function of the Linux chown command?
Changes the Linux command prompt
Compares the contents of two files or sets of files
Changes file owner and group permissions
Changes file access permissions
Changes file owner and group permissions
Which of the following is a Linux command that allows to assume the identity of a different system user and execute commands with security privileges of that user account?
sync
id
usermod
su
su
A Linux command that temporarily modifies security privileges to allow an execution of a single command that requires root access permissions is called:
id
sudo
usermod
su
sudo
What is the name of a command-line utility used for managing (i.e., finding, installing, or updating) software packages on Debian and Debian-based Linux distributions?
rpm
dpkg
yum
apt-get
apt-get
Which of the answers listed below refers to a package management utility used on Red Hat and Red Hat-based Linux distributions?
dpkg
Synaptic
yum
apt-get
yum
Which of the following answers refers to a Linux command-line utility used for configuring network interfaces?
ip
net config
ipconfig
networksetup
ip
Which of the Linux commands listed below can be used to display the amount of available disk space?
diskpart
df
chkdsk
diskutil
df
A Linux command-line command that enables searching files for lines containing a match to a given text pattern is known as:
rm
chmod
find
grep
grep