Question: Task 1 : Input Redirection 1 . Use the cat command to display the contents of a text file named input.txt . 2 . Redirect
Task : Input Redirection
Use the cat command to display the contents of a text file named input.txt
Redirect the contents of input.txt to a new file named output.txt using input
redirection.
Task : Output Redirection
Create a simple shell script named listfiles.sh that lists the files in the
current directory using the ls command.
Execute the listfiles.sh script and redirect its output to a file named
filelist.txt using output redirection.
Task : Arrow Redirection
Use the echo command to print "Hello, World!" to the terminal.
Redirect the output of echo to append "Welcome to UnixLinux to a file
named welcome.txt using arrow redirection.
Task : Process Management with ps
Use the ps command without any options to display information about
processes running in the current terminal session.
Use the ps ef command to display information about all processes running
on the system.
Use the ps aux command to display detailed information about all processes
running on the system.
Filter the output of ps aux to display information only about processes owned
by a specific user eg your username
Filter the output of ps aux to display information only about processes related
to a specific command eg sshd
Redirect the output of ps aux to a file named processinfo.txt for future
reference.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
