summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-05-22 20:23:51 -0600
committermo <mo.khan@gmail.com>2019-05-22 20:23:51 -0600
commit1d6d6125de92ddd48a9e2abb4ee0c670a6a15649 (patch)
tree63b74d826b685e2094793354acc85589f2a25357
parent37f470489b99c6a86bcda72348d979e030240bd9 (diff)
complete answers on what the shell commands are doing
-rw-r--r--README.md28
1 files changed, 24 insertions, 4 deletions
diff --git a/README.md b/README.md
index 33a8112..d06f593 100644
--- a/README.md
+++ b/README.md
@@ -255,10 +255,30 @@ Change permissions for all files in the `$HOME` directory.
$ chmod 711 ∼/*
```
-e. ls -l
-f. ls -ld
-g. ls -l ∼/personal
-h. ls -ld ∼/personal
+List files in current directory using the long listing format.
+
+```bash
+$ ls -l
+```
+
+List the current directory in long list format.
+
+```bash
+$ ls -ld
+```
+
+List files/directories in `$HOME/personal` directory using the long list
+format.
+
+```bash
+$ ls -l ∼/personal
+```
+
+List the directory `$HOME/personal` in long list format.
+
+```bash
+$ ls -ld ∼/personal
+```
12. What does the execute permission mean for a directory, a file type for which the execute operation makes no sense?
13. Create a file dir1 in your home directory and use cp /etc/passwd dir1/mypasswd command to copy the /etc/passwd file in it. Use the chmod command to have only the search permission on for it and execute the following commands. What is the results of executing these commands? Do the results make sense to you? Explain.