Linux command prompt Combine one file after the other for th

Linux command prompt

Combine one file after the other for the fruit file and fruit2 file from the user2 directory and save the combined file named as newfruit onto the practice directory, what command will you use?

Type ls –l /etc. Notice that the output of the command scrolls by quickly. Use the command to see the result one page at a time. What command do you use?

The ps (process status) command is used to see what processes are running a Linux system. The –e option will show you every process running on the system. What single command did you use will see the result one page at a time?

What command will you use to display the readable character of the /usr/bin/cal file one page at a time?

You can use multiple pipes to connect multiple commands. Enter a command that will take the output of the long file listing of /etc and pipe it to the tail command and then to the sort command. What single command did you enter?

Solution

cat fruit fruit2 > /practice/newfruit

ls -l /etc | more or ls -l /etc | less

ps -e | more or ps -e | less

cat /usr/bin/cal | less or use cat -A /usr/bin/cal | less to show all non printable characters

ls -l /etc | tail | sort

Linux command prompt Combine one file after the other for the fruit file and fruit2 file from the user2 directory and save the combined file named as newfruit o

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site