Hoofdstuk 6 Flashcards

1
Q

The top-level directory on a Linux system is represented as: - 6.3

A

/

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

Is the following path absolute or relative?

../../home/sysadmin

A

relative

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

The double dot (..) can be used with the cd command to represent: - 6.3.5

A

The directory above the current working directory

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

The cd command by itself will take you to what directory?

A

your home directory

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

What command will allow you to change your current working directory? -6.3.4

A

cd

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

The double dot (..) can be used to represent the directory…- 6.3.5

A

…above the current directory

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

The first character in a long listing (ls -l) indicates: - 6.4.3

A

If something is a file, directory, or symbolic link

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

The ls command color codes results by default. 6.4.1

A

False

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

Which option can be used with the rm command to prompt before deleting? - 6.9

A

-i

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

Which of the following commands can be used to rename a file? - 6.7.1

A

mv

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

The tilde (~) is used to represent: 6.3.2

A

A user’s home directory

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

The ls command without options or arguments… - 6.4

A

…lists the contents of the current directory

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

The command ls -S will sort files: - 6.4.5

A

By size, largest to smallest.

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

The command rm -r will… - 6.10

A

remove a directory along with any files or subdirectories.

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

The rm command can delete multiple files at once. - 6.9

A

True

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

The touch command can be used to: - 6.8

A

create new files

update the time stamp of existing files

17
Q

Hidden files are files that begin with what character? - 6.4.2

A

A period (.)

18
Q

What option for the ls command will display all files, including hidden files? - 6.4.2

A

-a

19
Q

Which of the following commands will prevent any aliased options to the ls command? 6.4.1

A

\ls

20
Q

When using the cp command, you must provide both a source and a destination. 6.5

A

False (But in the late it say true with this statement “It requires that you specify a source and a destination. “)

21
Q

Which of the following commands can be used to access the home directory of the user “bob” while logged in as root?
(choose two)

A

cd ~bob

cd /home/bob

22
Q
Which option(s) can be used to prevent cp from overwriting an existing file?
(choose two)
A
  • n

- i