Question
The characters *, ?, [, and ] have special meaning in Unix. They can either be used on the command line to expand path names,
The characters "*", "?", "[", and "]" have special meaning in Unix. They can either be used on the command line to expand path names, or to construct regular expressions for utilities like grep. Like most everything else in Unix there are man pages that describe their use in detail. Give the 2 man pages that describe them. Your answer should give the command name and its section, such as in this example:
ls(1) passwd(5)
where section 1 of the manual has a page on the ls command, and section 5 has a page on the passwd file format.
Now perform the following tasks:
- Create a new directory "assignmentFour".
- Make "assignmentFour" your current directory.
- Create a new empty file "fileOne".
- Redirect the output of the "ls -a" command to a file called "lsfile".
- Display the contents of the "lsfile" file.
- Redirect the output of the "date" command to the "lsfile" file.
- Display the contents of the "lsfile" file.
- Append the output of the "w" command to the "lsfile" file.
- Display the contents of the file "lsfile".
- Use pipe(s) with the ps and wc (with option -l) commands to find out how many processes you are currently running.
- Use pipe(s) with the ps (with options -ef) and wc commands to find out how many processes are currently running on the entire system.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started