Linux Essentials Phase I Commands, Syntax, and Examples

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/45

flashcard set

Earn XP

Description and Tags

Fill-in-the-blank practice flashcards covering Linux commands, options, syntax, permissions, process management, and I/O redirection.

46 Terms

1
New cards

The command that displays kernel and system information is __________.

uname

2
New cards

To display the kernel release using the uname command, the option __________ is specified.

-r

3
New cards

The command that prints the full path of the current directory is __________.

pwd

4
New cards

To list all files and directories including hidden files, ls is run with the option __________.

-a

5
New cards

The mkdir command creates missing parent directories when executed with the __________ option.

-p

6
New cards

The command used strictly to remove an empty directory is __________.

rmdir

7
New cards

To create an empty file or update an existing file's timestamp, use the __________ command.

touch

8
New cards

To copy directories recursively using the cp command, provide the __________ option.

-r

9
New cards

The option that prompts or asks before overwriting when moving or renaming files with mv is __________.

-i

10
New cards

The command that displays used and free space of mounted filesystems is __________.

df

11
New cards

To display the space used by a directory with a summary, du is run with the option __________.

-sh

12
New cards

In chmod numeric permission representation, read (r) has a numeric value of __________.

44

13
New cards

In chmod numeric permission representation, write (w) has a numeric value of __________.

22

14
New cards

In chmod numeric permission representation, execute (x) has a numeric value of __________.

11

15
New cards

The command used to change the owner (and optionally the group) of a file is __________.

chown

16
New cards

The command used specifically to change the group owner of a file is __________.

chgrp

17
New cards

When creating a user with useradd, the option that creates a home directory is __________.

-m

18
New cards

To append a supplementary group to a user, the usermod command uses the option combination __________.

-aG

19
New cards

When deleting a user with userdel, the option used to also remove their home directory is __________.

-r

20
New cards

The option used with groupmod to rename an existing group is __________.

-n

21
New cards

The groupdel command cannot delete a group if that group is a user's __________ group.

primary

22
New cards

The command used to display user ID, group ID, and group memberships is __________.

id

23
New cards

The command that lists users currently logged in is __________.

who

24
New cards

To exit the top interactive live process view, press the key __________.

q

25
New cards

By default, the kill command sends signal number __________ (TERM).

1515

26
New cards

To force-kill a process by PID, the kill command sends signal number __________.

99

27
New cards

The command used to send signals to all processes matching a given name is __________.

killall

28
New cards

The nice command starts a process with a nice value ranging from __________.

−20 to 19-20\text{ to }19

29
New cards

To modify the priority of an already running process by PID, use the __________ command.

renice

30
New cards

The shell command used to resume a stopped job in the background is __________.

bg

31
New cards

The shell command used to bring a background job to the foreground is __________.

fg

32
New cards

The command used to show IP addresses of network interfaces is __________.

ip addr

33
New cards

To limit the number of ping requests sent to a host, specify the option __________.

-c

34
New cards

The utility used to securely copy files to or from a remote host over SSH is __________.

scp

35
New cards

In grep, the option used to invert the match and select non-matching lines is __________.

-v

36
New cards

In grep, the option used to display the count of matching lines is __________.

-c

37
New cards

To sort lines numerically with the sort command, pass the option __________.

-n

38
New cards

The command used to collapse adjacent duplicate lines is __________.

uniq

39
New cards

To count the number of lines in a file, the wc command is run with the option __________.

-l

40
New cards

By default, the head command outputs the first __________ lines of a file.

1010

41
New cards

To follow and output newly appended lines in real-time, the tail command uses the __________ option.

-f

42
New cards

In the cut command, the option used to specify a custom delimiter is __________.

-d

43
New cards

The command used to merge corresponding lines of files side by side is __________.

paste

44
New cards

The utility used to translate or delete characters from standard input is __________.

tr

45
New cards

The redirection operator that overwrites the target file with command output is __________.

>

46
New cards

The redirection operator that appends command output to the end of a file without overwriting is __________.

>