Menu

[Solved]-1 Give Command Single Command Pipelined Series Commands Performs Following Tasks Assume Ba Q37170549

1. Give the command (single command or pipelined series ofcommands) that performs each of the following tasks. Assume bash,and the commands we have been discussing. Do not use things likeperl, awk, python, etc. Unless specifically stated otherwise,assume that the command should work no matter what your currentworking directory is or where a user’s home directory is located.Use only flags that are required by the question as stated. Assumeyou are logged in as a “normal” (non-administrator) user, but thatyou have “administrative” permissions set up in the sudoers file incase you would be required to take advantage of that in order tocarry out any of these tasks. Use only single spaces between partsof a command/options/arguments, and do not put extra spaces beforeor after the answers.

i) Moves all files in /usr/local/bin that start with “c”, “C”,“b”, or “B” to /local/bin.

j) Create a symbolic (soft) link to the existing /bin/vi filefrom a new file called “editor” in a directory called “etc” in thecurrent user’s home directory.

k) Create a hard link to the current user’s ~/.bashrc file fromtheir ~/etc directory.

l) Sort the output of “ps auxf” so that, in the order specifiedhere, it 1) gets rid of the column header line, 2) sortsalphabetically by user name, thus keeping lines about all processesrun by each user together, and 3) sorts secondarily in descending(largest to smallest) order by the numeric process ID.

Expert Answer


Answer to 1. Give the command (single command or pipelined series of commands) that performs each of the following tasks. Assume b… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *