2.3 Find Your Way - Using Directories and Listing Files Flashcards

1
Q

Which of the following represents a hidden filename?

A) ./hidden.txt
B) /.hidden.txt
C) $hidden.txt
D) %hidden.txt

A

/.hidden.txt

This is a hidden file. The slash (/) at the beginning means that this is at the root level of the filesystem.

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

Which of the following could you use to change the current working directory to your home directory in bash? (Select 3)

A) cd
B) cd ~
C) cd $HOME
D) cd -

A

cd
cd ~
cd $HOME

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

What command will display on the screen a recursive list of the present working directory, including the subfolders?

A

ls -R

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

What command will print the current working directory?

A

pwd

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

What command will display all files and directories that are listed, including hidden files and directories?

A

ls -a

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

What command will create a long list of files and directories with each occupying one line, and additional information about
each file and directory that will be displayed?

A

ls -l or ll

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

What option(s) could you use with ls to show almost all files (except implied . and .. )?

A

ls -A

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

In what root file system are user binaries stored?

A

/bin

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

In what root file system are device files stored?

A

/dev

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

In what root file system are configuration files stored?

A

/etc

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

In what root file system are the kernel and process files stored?

A

/proc

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

In what root file system is the root user home directory files stored?

A

/root

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

The path to a file or directory location may be specified as an absolute path, starting with a _?

A

/

ex: /home/cloud_user/file1

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