Chapter 3+4 Flashcards

1
Q

Purpose of /boot

A

Contains files necessary to start boot process of the system, such as boot loader configurations and kernel images

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

Purpose of /etc

A

Stores system.specific configuration files
Files that control behaviour of various system components and applications

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

Purpose of /home

A

Home directory for regular users
Stores user-specific data and configuration files

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

Purpose of /root

A

Home directory for administrative superuser
Contains configuration files and data specific to the root user

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

Purpose of /usr

A

Contains installed software, shared libraries, user commands, system administration commands, locally customized software

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

Purpose of /var

A

Stores system-specific variable data that should persist between boots, including dynamically changing files

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

ls -l

A

long listing format

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

ls -a

A

list all files

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

ls -R

A

list recursively

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

cd -

A

change to previous directory, where user was before current one

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

cd ..

A

change to parent directory

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

cd

A

change to home directory

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

mkdir

A

make a directory

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

mkdir -p Files/file

A

create any missing parent directories for requested destination

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

cp

A

copy one or multiple files to a target directory

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

cp -r

A

recursively copy a directory

17
Q

mv

A

rename or move a file

18
Q

rm

A

remove a file

19
Q

rm -r

A

remove a directory and its contents

20
Q

rm -ri

A

interactively prompt for confirmation before deleting a directory and its contents

21
Q

rmdir

A

remove empty directory

22
Q

ln

A

create a hard link
another file name that points to an existing file

23
Q

ln -i file.txt newfile.txt

A

Determine whether or not two files are linked
If they are, the inode numbers are the same

24
Q

ln -s file.txt newfile.txt

A

Create a symbolic link between two files/a file and a directory

25
Q

USERVAR=john
echo $USERVAR
What is the output?

A

john

26
Q

USERVAR=john
echo $USERVAR
What is the output?

A

$USERVAR

27
Q

man

A

get manual page for command

28
Q

man -k word

A

search for manual page containing word in titles and descriptions

29
Q

man -K word

A

search for manual page contaning word in full-text page, not just title and description

30
Q
A