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.
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
Questions: Explain the following Linux commands Show your work examples/outcome. 1. command used to locate /Home/...
Questions: Explain the following Linux commands Show your work examples/outcome. 1. command used to locate /Home/ Directory…show the outcome 2. command used for October 2020 3. mv command and cat command 4. commands used- move to parent directory? 5. Explain why command is used ls -R?   What is the meaning of -R ? 6. Explain and describe two examples of how the touch command. 7. Explain what is the outcome of the commands ls -C ? 8. Explain command echo....
Choose 10 commands from the list to study in detail for this assignment. For each command,...
Choose 10 commands from the list to study in detail for this assignment. For each command, you need to provide a short description of the main functionality, and an example run (including output) of the command. Notes  You need to choose at least one command from each category.  Be brief. You do not need to write a lot.  Although you are only required to document the usages of 10 commands in this assignment, you are expected to...
Unix / Linux 31. Given the first two commands, what is the expected output for the...
Unix / Linux 31. Given the first two commands, what is the expected output for the third command? (single quotes) $ echo * a b c $ x=* $ echo '$x' 32. Given the first two commands, what is the expected output for the third command? (Single quotes inside of double quotes) $ echo * a b c $ x=* $ echo "'$x'" 33. Given the first two commands, what is the expected output for the third command? (double quotes...
Linux Ubuntu 1. Use the appropriate commands to locate the device file used by the device,...
Linux Ubuntu 1. Use the appropriate commands to locate the device file used by the device, mount the filesystem to a directory of your choice, and check the filesystem for errors. 2. Finally, add a line to /etc/fstab to ensure that the filesystem can be easily mounted in the future (this line should not automount the filesystem at boot time). You have to document all your steps and provide the screenshot of your work process.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT