Core 2: Basic Linux Commands Flashcards

1
Q

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

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

grep

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following Linux command-line commands enables directory traversal?

cd
dir
ps
dig

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The following command can be used for turning off or restarting a Linux host.

reboot
shutdown
exit
taskkill

A

shutdown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A Linux command displaying an absolute path to (i.e. full filename of) the current working directory is called:

mv
pwd
rm
dir

A

pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A Linux command-line command allowing a user to change his/her own password is known as:

pwd
pass
passwd
password

A

passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following is a Linux command for transferring files/directories to a different directory?

replace
export
move
mv

A

mv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which Linux command enables copying files and directories?

cp
copy
xcopy
robocopy

A

cp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the name of the Linux command used for renaming files and directories?

rm
ps
mv
ls

A

mv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A command-line command in Linux used for deleting files and directories is known as:

erase
rm
del
edit

A

rm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

Changes file access permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

changes file owner and group permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A Linux command-line utility used for displaying and modifying network interface configuration settings is called:

ifconfig
net config
ipconfig
networksetup

A

ifconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

iwconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the name of a Linux command-line utility used for displaying statistics of running processes?

ps
tasklist
nbtstat
id

A

ps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A

su

17
Q

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

A

sudo

18
Q

Which of the following is a package management system most often used on Debian and Debian-based Linux distributions?

KDE
APT
Yum
RPM

A

AP

19
Q

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

A

apt-get

20
Q

Which of the following commands is used for invoking a text editor in Unix-like operating systems?

edit
notepad
vi
bcdedit

A

vi

21
Q

A low-level utility that can be used for creating/restoring filesystem backup copies in Linux is called:

fsutil
diskpart
dd
format

A

dd

22
Q

Which of the Linux command-line commands allows to terminate a running process?

taskkill
exit
shutdown
kill

A

kill