
- •Management processes
- •1 Purpose of
- •2 Key provisions
- •2.1 Process control: general
- •2.2 Kill command
- •2.3 Priorities processes. Nice command
- •2.4 Ps command
- •2.5 Nohup command
- •2.6 At command
- •2.7 Program cron
- •3 Control questions
- •4 Homework
- •5 Laboratory assignment
- •6 Requirements for the content of the protocol
- •Readdress of input/output, conveyor
- •1 Purpose of
- •2 Key provisions
- •2.1 Standard streams
- •2.2 Pereadrssatsiya standard input / output
- •2.3 Variable noclobber
- •2.4 Device /dev/null
- •2.5 Redirecting stdin using exec
- •3 Key Questions
- •4 Homework
- •5 Laboratory assignment
- •6 Requirements for the content of the protocol
5 Laboratory assignment
Create a file tree.list list of files in your home directory;
Create a file without using the command touch. (:> Filename).
Redirect stderr to file errors.
Redirecting output (stdout) to file "filename".
Redirecting stdout and stderr to file "filename".
Using redirection, file descriptors to do the following:
echo 1234567890 > File # Write a string to a file "File".
exec 3 <> File # Open "File" and connect descriptor
3.
read -n 4 <& 3 # Read 4 symbols.
echo -n . > S3 # Enter point symbol.
exec 3>&- # Close the handle 3.
cat File # ==> 1234.67890
Using conveyors to sort the contents of all files in the directory, remove duplicate rows, the result is stored in a file result-file (cat *. txt \ sort I uniq> result-file).
Redirect stdin using exec.
Redirect stdout using exec.
6 Requirements for the content of the protocol
Name of laboratory work.
Objective.
The results of the assignment.
Brief description of the work done.
Conclusions of the work done.
Date, signature of the student visa is a teacher.