Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

can i get aswer about linux command? 11) If you want to joint 2 lines, which key

ID: 3792029 • Letter: C

Question

can i get aswer about linux command?

11) If you want to joint 2 lines, which key you’ll type in the COMMAND mode.

12) Please pick the line(s) which contains “Friday” in file1.

13) Please list the information of all users worked in the Linux machine which you connect to.

14) Please change to your home directory which contains your current directory “Summer_2016”.

15) What is the difference entering “^” and “0” assume you are in the middle of a line in vi/vim editor.

16) Please list recursively all content under the sub-directory “dir1”.

17) Change to the directory containing dir1, and re-direct the content of dir1

to a file called “file4”.

18) How do you redirect standard error messages to a file in BASH shell?

19) Please use “absolute path” (the path like /home/ysun/dir1) to copy the file1 which you created at sub-directory “Summer_2016” to your current directory “dir1”.

20) Please describe the 3 shell commands to go back to your home directory.

Explanation / Answer

answer 1

the command can be as follows:

$ awk 'NR%2{printf "%s,",$0;next}{print;}' file

This is the command that will join 2 lines and the output will be in the file as fiven by you. The name of the output file must be mebntioned in the last part of the command where i have mentioned file.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote