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