Question: Task 1 : Input Redirection 1 . Use the cat command to display the contents of a text file named input.txt . 2 . Redirect

Task 1: Input Redirection
1. Use the cat command to display the contents of a text file named input.txt.
2. Redirect the contents of input.txt to a new file named output.txt using input
redirection.
Task 2: Output Redirection
1. Create a simple shell script named list_files.sh that lists the files in the
current directory using the ls command.
2. Execute the list_files.sh script and redirect its output to a file named
file_list.txt using output redirection.
Task 3: Arrow Redirection
1. Use the echo command to print "Hello, World!" to the terminal.
2. Redirect the output of echo to append "Welcome to Unix/Linux!" to a file
named welcome.txt using arrow redirection.
Task 4: Process Management with ps
1. Use the ps command without any options to display information about
processes running in the current terminal session.
2. Use the ps -ef command to display information about all processes running
on the system.
3. Use the ps aux command to display detailed information about all processes
running on the system.
4. Filter the output of ps aux to display information only about processes owned
by a specific user (e.g., your username).
5. Filter the output of ps aux to display information only about processes related
to a specific command (e.g., sshd).
6. Redirect the output of ps aux to a file named process_info.txt for future
reference.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!