checks for layout

This commit is contained in:
waldek 2021-04-10 14:18:32 +02:00
parent b41b64c46b
commit 5c700c984e
1 changed files with 9 additions and 0 deletions

View File

@ -79,6 +79,7 @@
1. There is one command in the table above that doesnt have a man page. Which one is it and why do you think that the command doesnt 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.
```
User
├── Documents
@ -112,6 +113,7 @@
* 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:
```
$ sudo tree -F /
@ -136,6 +138,7 @@
12 directories, 5 files
```
* A user enters the following commands:
```
$ cd /etc/udev
$ ls -a
@ -148,6 +151,7 @@
* 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/.
1. Consider the following commands:
```
$ pwd
/etc/udev/rules.d
@ -160,6 +164,7 @@
## Explorational Exercises
1. Suppose a user has entered the following commands:
```
$ mkdir "this is a test"
$ ls
@ -175,6 +180,7 @@
## Guided Exercises
1. Use the following file structure to answer the following three questions:
```
/
├── 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 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.
```
drwxrwxrwx 5 eric eric 4.0K Apr 26 2011 China/
-rwxrwxrwx 1 eric eric 1.5M Jul 18 2011 img_0066.jpg
@ -232,6 +239,7 @@
## 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
```
$ pwd
/tmp
@ -252,6 +260,7 @@
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. Which of the following files would log_[a-z]\_201?\_\*\_01.txt match?
```
log\_3\_2017_Jan_01.txt
log_+_2017_Feb_01.txt