linuxacad Flashcards

1
Q

Run level 6 can be used to

A

Reboot the system

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

ln -s will

A

Create a symbolic link

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

The -t flag when passed to mkfs requires you to

A

Specify the file system type

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

The sticky bit, if enabled as a permission, has what effect?

A

Only the directory’s owner or file’s owner can rename or delete files (chmod +t filename or chmod 1000) instead of anybody with write permissions

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

Brackets [] when used as part of grep are known as a character class.

A

True

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

set -o noclobber enables noclobber on your shell. What function does this perform?

A

Prevents accidental overwrites of existing files.

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

echo “hello”&raquo_space; file.txt

A

Will append hello at the end of file.txt

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

id:3:initdefault sets the default runlevel for the system at 3

A

True

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

What directory contains all the system’s primary unit configuration files?

A

/usr/lib/systemd/system

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

You need to rerun the configuration of a deb package much like the configuration that was run during installation. How would you do this?

A

Use the dpkg-reconfigure command

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

You need to create a shared workspace for your accounting department. Every time a user inside a directory creates a file, that file or sub-directory needs to inherit the parent directory’s group ID. How would you accomplish this?

A

Set the setgid flag on the parent directory (chmod g+s parent_directory)

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

Select the best answer: echo “test”&raquo_space; test.txt && echo “mysheet”&raquo_space; test.txt

A

The second echo command will only execute if the first echo command is successful

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

The term ‘UID’ is short for ‘User Identification’.

A

True

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

GPT-based partition tables can hold up to at least 128 primary partitions while MBR based partition tables can only hold four primary partitions.

A

True

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

While attempting to shut down the Apache service with “systemctl stop httpd” you notice that there are httpd processes that are refusing to shut down. How might you send a SIGTERM signal to try and gently stop the processes to all httpd processes?

A

pkill httpd

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

While in vi command mode you type 3yy what is the result?

A

Will yank 3 lines starting with the line your cursor is on.

17
Q

How would you extract information about the boot process?

A

Use the ‘dmesg’ command

18
Q

dpkg is a package manager used for installing .deb packages on Debian/Ubuntu systems.

A

True

19
Q

If you want a command or process to continue running after exiting the system, which of these would you add to the front of the command?

A

nohup

20
Q

Which file system stores files that are changed frequently?

A

/var