Core 2: Basic Linux Commands Flashcards
Which of the following Linux commands is used to display information about files and directories contained within the current working directory?
pwd
ls
grep
ps
ls
A Linux command-line command that enables searching files for lines containing a match to a given text pattern is called:
rm
chmod
find
grep
grep
Which of the following Linux command-line commands enables directory traversal?
cd
dir
ps
dig
cd
The following command can be used for turning off or restarting a Linux host.
reboot
shutdown
exit
taskkill
shutdown
A Linux command displaying an absolute path to (i.e. full filename of) the current working directory is called:
mv
pwd
rm
dir
pwd
A Linux command-line command allowing a user to change his/her own password is known as:
pwd
pass
passwd
password
passwd
Which of the following is a Linux command for transferring files/directories to a different directory?
replace
export
move
mv
mv
Which Linux command enables copying files and directories?
cp
copy
xcopy
robocopy
cp
What is the name of the Linux command used for renaming files and directories?
rm
ps
mv
ls
mv
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
A Linux command-line utility used for displaying and modifying network interface configuration settings is called:
ifconfig
net config
ipconfig
networksetup
ifconfig
Which of the following is a Linux command-line command used for configuring network interface parameters specific to the wireless communication?
net config
ifconfig
networksetup
iwconfig
iwconfig
What is the name of a Linux command-line utility used for displaying statistics of running processes?
ps
tasklist
nbtstat
id
ps
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
Which of the following is a package management system most often used on Debian and Debian-based Linux distributions?
KDE
APT
Yum
RPM
AP
What is the name of a software tool used for finding and installing software packages on Debian and Debian-based Linux distributions?
RPM
apt-rpm
Yum
apt-get
apt-get
Which of the following commands is used for invoking a text editor in Unix-like operating systems?
edit
notepad
vi
bcdedit
vi
A low-level utility that can be used for creating/restoring filesystem backup copies in Linux is called:
fsutil
diskpart
dd
format
dd
Which of the Linux command-line commands allows to terminate a running process?
taskkill
exit
shutdown
kill
kill