checks for layout
This commit is contained in:
parent
b41b64c46b
commit
5c700c984e
|
@ -79,6 +79,7 @@
|
||||||
|
|
||||||
1. There is one command in the table above that doesn’t have a man page. Which one is it and why do you think that the command doesn’t have a man page?
|
1. There is one command in the table above that doesn’t have a man page. Which one is it and why do you think that the command doesn’t have a man page?
|
||||||
1. Using the commands in the table above, create the following file tree. The names that start with a capital are Directories and the ones in lower case are files.
|
1. Using the commands in the table above, create the following file tree. The names that start with a capital are Directories and the ones in lower case are files.
|
||||||
|
|
||||||
```
|
```
|
||||||
User
|
User
|
||||||
├── Documents
|
├── Documents
|
||||||
|
@ -112,6 +113,7 @@
|
||||||
* docs
|
* docs
|
||||||
* /
|
* /
|
||||||
1. Observe the following file structure. Note: Directories end with a slash (/) when tree is invoked with the -F option. You will need elevated privileges in order to run the tree command on the root (/) directory. The following is example output and is not indicative of a full directory structure. Use it to answer the following questions:
|
1. Observe the following file structure. Note: Directories end with a slash (/) when tree is invoked with the -F option. You will need elevated privileges in order to run the tree command on the root (/) directory. The following is example output and is not indicative of a full directory structure. Use it to answer the following questions:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo tree -F /
|
$ sudo tree -F /
|
||||||
|
|
||||||
|
@ -136,6 +138,7 @@
|
||||||
12 directories, 5 files
|
12 directories, 5 files
|
||||||
```
|
```
|
||||||
* A user enters the following commands:
|
* A user enters the following commands:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ cd /etc/udev
|
$ cd /etc/udev
|
||||||
$ ls -a
|
$ ls -a
|
||||||
|
@ -148,6 +151,7 @@
|
||||||
* Your current location is /home/user/Documents/. Navigate to the directory named /etc/.
|
* Your current location is /home/user/Documents/. Navigate to the directory named /etc/.
|
||||||
* Your current location is /etc/systemd/system/. Navigate to the directory named /home/user/.
|
* Your current location is /etc/systemd/system/. Navigate to the directory named /home/user/.
|
||||||
1. Consider the following commands:
|
1. Consider the following commands:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ pwd
|
$ pwd
|
||||||
/etc/udev/rules.d
|
/etc/udev/rules.d
|
||||||
|
@ -160,6 +164,7 @@
|
||||||
## Explorational Exercises
|
## Explorational Exercises
|
||||||
|
|
||||||
1. Suppose a user has entered the following commands:
|
1. Suppose a user has entered the following commands:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ mkdir "this is a test"
|
$ mkdir "this is a test"
|
||||||
$ ls
|
$ ls
|
||||||
|
@ -175,6 +180,7 @@
|
||||||
## Guided Exercises
|
## Guided Exercises
|
||||||
|
|
||||||
1. Use the following file structure to answer the following three questions:
|
1. Use the following file structure to answer the following three questions:
|
||||||
|
|
||||||
```
|
```
|
||||||
/
|
/
|
||||||
├── etc/
|
├── etc/
|
||||||
|
@ -200,6 +206,7 @@
|
||||||
* What command can user enter to navigate into their Documents directory from /etc/udev? Use the shortest possible path.
|
* What command can user enter to navigate into their Documents directory from /etc/udev? Use the shortest possible path.
|
||||||
* What command can user enter to navigate into michael 's Music directory? Use the shortest possible path.
|
* What command can user enter to navigate into michael 's Music directory? Use the shortest possible path.
|
||||||
1. Consider the following output of ls -lh to answer the next two questions. Note that directories are indicated with a d at the beginning of the line.
|
1. Consider the following output of ls -lh to answer the next two questions. Note that directories are indicated with a d at the beginning of the line.
|
||||||
|
|
||||||
```
|
```
|
||||||
drwxrwxrwx 5 eric eric 4.0K Apr 26 2011 China/
|
drwxrwxrwx 5 eric eric 4.0K Apr 26 2011 China/
|
||||||
-rwxrwxrwx 1 eric eric 1.5M Jul 18 2011 img_0066.jpg
|
-rwxrwxrwx 1 eric eric 1.5M Jul 18 2011 img_0066.jpg
|
||||||
|
@ -232,6 +239,7 @@
|
||||||
## Guided Exercises
|
## Guided Exercises
|
||||||
|
|
||||||
1. Given the following, select the directories that would be created by the command mkdir -p /tmp/outfiles/text/today /tmp/infiles/text/today
|
1. Given the following, select the directories that would be created by the command mkdir -p /tmp/outfiles/text/today /tmp/infiles/text/today
|
||||||
|
|
||||||
```
|
```
|
||||||
$ pwd
|
$ pwd
|
||||||
/tmp
|
/tmp
|
||||||
|
@ -252,6 +260,7 @@
|
||||||
1. What happens when you use mv to move a directory into itself?
|
1. What happens when you use mv to move a directory into itself?
|
||||||
1. How would you delete all files in your current directory that start with old?
|
1. How would you delete all files in your current directory that start with old?
|
||||||
1. Which of the following files would log_[a-z]\_201?\_\*\_01.txt match?
|
1. Which of the following files would log_[a-z]\_201?\_\*\_01.txt match?
|
||||||
|
|
||||||
```
|
```
|
||||||
log\_3\_2017_Jan_01.txt
|
log\_3\_2017_Jan_01.txt
|
||||||
log_+_2017_Feb_01.txt
|
log_+_2017_Feb_01.txt
|
||||||
|
|
Loading…
Reference in New Issue