diff options
| author | mo <mo.khan@gmail.com> | 2019-05-22 20:23:51 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-22 20:23:51 -0600 |
| commit | 1d6d6125de92ddd48a9e2abb4ee0c670a6a15649 (patch) | |
| tree | 63b74d826b685e2094793354acc85589f2a25357 | |
| parent | 37f470489b99c6a86bcda72348d979e030240bd9 (diff) | |
complete answers on what the shell commands are doing
| -rw-r--r-- | README.md | 28 |
1 files changed, 24 insertions, 4 deletions
@@ -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. |
