linuxacad Flashcards Preview

Linux+_acad > linuxacad > Flashcards

Flashcards in linuxacad Deck (20):
1

Run level 6 can be used to

Reboot the system

2

ln -s will

Create a symbolic link

3

The -t flag when passed to mkfs requires you to

Specify the file system type

4

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

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

5

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

True

6

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

Prevents accidental overwrites of existing files.

7

echo "hello" >> file.txt

Will append hello at the end of file.txt

8

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

True

9

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

/usr/lib/systemd/system

10

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

Use the dpkg-reconfigure command

11

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?

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

12

Select the best answer: echo "test" >> test.txt && echo "mysheet" >> test.txt

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

13

The term 'UID' is short for 'User Identification'.

True

14

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

True

15

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?

pkill httpd

16

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

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

17

How would you extract information about the boot process?

Use the 'dmesg' command

18

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

True

19

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?

nohup

20

Which file system stores files that are changed frequently?

/var