Question

In: Computer Science

Look up and use each of these Linux commands. (Each command will have two parts) Summarize...

  1. Look up and use each of these Linux commands. (Each command will have two parts)
    • Summarize their function then use the command
    • Use the Command and document the output (<parameters of your choice>
    • Command Function
      info cat
      Demonstrate 'cat' in use  
      man cp
      Demonstrate 'cp' in use  
      man touch
      Demonstrate 'touch' in use  
      man mv
      Demonstrate 'mv' in use  
      man rm
      Demonstrate 'rm' in use  
      info wc
      Demonstrate 'wc' in use  
      man find
      Demonstrate 'find' in use  
      man chmod
      Demonstrate 'chmod' in use  
      man chown
      Demonstrate 'chown' in use
      Lookup append ">>" operator online
      Demonstrate '>>' in use  
      Lookup redirection ">" operator online
      Demonstrate '>' in use  
      Lookup another command not previously covered
      Use that command

PART B (50 total pts) - File Operations (Windows)

  1. Look up and use each of these MSDOS commands. (Each command will have two parts).
    • Summarize their function then use the command
    • Use the Command and document the output
    • Command Function
      help type
      Demonstrate 'type' in use  
      help copy
      Demonstrate 'copy' in use  
      help xcopy
      Demonstrate 'xcopy' in use  
      help move
      Demonstrate 'move' in use  
      help del
      Demonstrate 'del' in use  
      Demonstrate 'find' in use  
      Demonstrate 'find' with parameters to get Word Count
      help attrib
      Demonstrate 'attrib' with parameters to get Word Count
      help rmdir
      Demonstrate 'rmdir' with parameters to get Word Count
      Look append ">>" operator online
      Demonstrate '>>' in use
      Look redirection ">" operator online
      Demonstrate '>' in use  
      help whoami
      Demonstrate 'whoami' in use  
      Lookup another command not previously covered
      Use that command

Solutions

Expert Solution

Command

Function

info cat

This command is used for display file content and create new file with cat > filename and cltr + d to save that file

Demonstrate 'cat' in use  

Cat filename

man cp

Cp is used to copy file with our desired filename

Demonstrate 'cp' in use  

Cp <source filename> <destination filename> , cp file file1

man touch

Touch is used to create empty file with date also

Demonstrate 'touch' in use  

Touch <filename>

man mv

Mv is used to move file from one destination to another destination also used to rename filename as well

Demonstrate 'mv' in use  

Mv <source filename> <destination filename>, mv test /home/

man rm

Rm is used to remove file and directory also

Demonstrate 'rm' in use  

rm test

info wc

Word count is a utility to count number of lines and character in file

Demonstrate 'wc' in use  

Wc -l test, wc -c test

man find

Find command is used to find the file and directory

Demonstrate 'find' in use  

Find /home test

man chmod

Chmod is used to change the file permission on file

Demonstrate 'chmod' in use  

Chmod <000 to 7777> filename

man chown

Chown is used for change the ownership of file

Demonstrate 'chown' in use

Chown user:group , chown test:test <filename>

Lookup append ">>" operator online

This is used for append the existing file

Demonstrate '>>' in use  

Ls -l >> testfile

Lookup redirection ">" operator online

This > is used to create new output file

Demonstrate '>' in use  

Cat > filename

Lookup another command not previously covered

Ls,shift,rmdir,mkdir manymore.

Use that command

mkdir test , rmdir test

We are allowed to do only 4 exercise out of any given.

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)


Related Solutions

a) Observe the following Linux commands and work out what each command does: 1) $ ls...
a) Observe the following Linux commands and work out what each command does: 1) $ ls –al 2) $ /etc/profile 3) $ chmod 200 final_assignment.txt b) Consider a scenario where Bob has downloaded his messages to the local machine with an access of POP3, he can create mail folders and move the downloaded messages into the folders. Bob can then delete messages, move messages across folders, and search for messages (by sender name or subject). But this paradigm—namely, folders and...
What would these commands look like in Kali Linux? In Kali Linux: a) Create a user...
What would these commands look like in Kali Linux? In Kali Linux: a) Create a user (username= YOUR-FIRSTNAME). b) Create a file (filename=test) and use chmod command to add the write permission for Others. c) Use setfacl to remove write permission to YOUR-FIRSTNAME user. Use getfacl to check the file's permissions. d) Remove YOUR-FIRSTNAME user. Deliverable(Screenshots from each section if possible please)
please use linux or unix to complete Diff command The diff command displays differences between two...
please use linux or unix to complete Diff command The diff command displays differences between two files on a line-by-line basis. It displays the differences as instructions that you can use to edit one of the files ( using the vi editor) to make it the same as the other. When you use diff, it produces a series of lines containing Append (a), Delete (d), and Change (c) instructions. Each of these lines is followed by the lines from the...
linux Using the grep or egrep commands, what would be the full command (including regular expression)...
linux Using the grep or egrep commands, what would be the full command (including regular expression) to view only the lines in the file /boot/grub/grub.cfg that DO NOT begin with a hashtag (the # sign). In other words, what would be the command to print all the lines in this file that do not begin with this character.
Given the Linux shell command descriptions, please write down the corresponding shell commands in a terminal...
Given the Linux shell command descriptions, please write down the corresponding shell commands in a terminal window.             a) list the current directory contents with the long format             b) print the name of the working directory             c) change directory to the root directory             d) change the permissions of file "myfile" (owned by yourself) so that (1)you can read/write, but cannot execute; (2) all other users cannot read/write/execute this file.             e) make a new directory called “mydir”
the Unix/Linux commands Enter the “date” command to print the current date and time. Also, try...
the Unix/Linux commands Enter the “date” command to print the current date and time. Also, try the “cal” command. Enter the command “clear” to clear the screen. Use the command “cat .bash_hisrtory” to view your startup file. Note that each shell has a different startup file, and since we’re using the BASH (Bourne-Again Shell), the startup file is .bash_history. (if you can’t find this file think about one way to display!) Enter the “exit” command to close the terminal window....
Try the Linux commands listed below. Post your thoughts about how to use these commands. Discuss...
Try the Linux commands listed below. Post your thoughts about how to use these commands. Discuss options that you might use with them, compare and contrast them and/or ask questions about commands you are not sure about. mount and umount more and less head and tail grep kill / xkill / pkill / killall su and sudo man and whatis ping and traceroute
Look up the definitions of these types of unemployment. Use two sources. Evaluate each type and...
Look up the definitions of these types of unemployment. Use two sources. Evaluate each type and determine how it impacts the worker and how it impacts the economy.'Types of Unemployment; *Frictional Unemployment *Structural Unemployment *Cyclical Unemployment
***************************************************** * USE UBUNTU (Linux) TERMINAL MODE COMMANDS ONLY * * DO NOT USE ANY EDITORS...
***************************************************** * USE UBUNTU (Linux) TERMINAL MODE COMMANDS ONLY * * DO NOT USE ANY EDITORS TO CREATE THIS PROGRAM * ***************************************************** 1) Create a file called lastNameFirstNameInitialpgm3.sh ex: robinsonMpgm1.sh 2) Append to the above file the necessary commands that when this file is executed it will display the following: - Using your own set of multi-line comments enter your program identification as described in the Syllabus, example: <<ID ************************************************** Author : Your Name Course : Course Name and Times...
Linux Fundamentals part 3 Below are questions related to the command line use of Linux. You...
Linux Fundamentals part 3 Below are questions related to the command line use of Linux. You can use the videos, man pages, and notes to answer these questions. Remember that Linux is CASE SENSITIVE. Rm and rm are NOT the same command. I will count off totally for a question if you do not take this into account. For each command give me the ENTIRE COMMAND SEQUENCE. If I ask you 'What command would I use to move the file...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT