Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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