Member-only story
Practicing Unix/ Linux: Command Lines Exercises
35 min readJan 30, 2024
Outline:
I. Command
II. egrep/ grep
III. Regular Expression/ Shell Globbing
IV. SyntaxIdentify cmd name options, arguments if any, in the following cmd lines.
$ ls -l / /usr .- Command:
ls - Options:
-l - Arguments:
/,/usr,. - Explanation: This ls command is used to list the contents of directories.
ls: This command is used to list directory contents.-l: This option specifies a long listing format, providing detailed information about each file or directory./: This is the root directory of the filesystem. When used as an argument tols, it lists the contents of the root directory./usr: This is a directory typically containing user binaries, libraries, and other shared resources..: This represents the current directory. When used as an argument tols, it lists the contents of the current directory.
$ cat /etc/passwd ../../project- Command:
cat - Arguments:
/etc/passwd,../../project - Explanation: This cat command is used to concatenate and display the contents of…
