Question

In: Computer Science

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

Solutions

Expert Solution

a) mount command is generally used to mount a storage device or file system, which makes it accessible and attaching it to the existing directory structure.

Whereas, the umount command actually unmounts the mounted file system. It actually detaches the system directory from the file system mount. We use umount command before removing a disk.

b) more command is used to view the file in the command prompt displaying one screen at a time and even allow the user to scroll up and down through the page.

less command is used to view the files without opening the file and allows forward and backward movement of the file.

c) head command displays the content from the top of the result. By default it shows top 10 lines of the result.

Whereas less command displays the content from the bottom of the result. By default it shows bottom 10 lines of the result.

d) grep command is a kind of a filter that is generally used to search a particular pattern and even displays all lines that contains that pattern.

e) Kill: the kil command is used to send a Terminate signal to the process.

kill -9 1924

killall: This is the kill signal works with the process name. It will kill the process by its name

killall -9 firefox

pkill: This command basically send signal to the process based on the name.

pkill demo

Xkill: This command will kill a client by the X resource. It is mainly used to kill the processes that are malfunctioning.

f) Sudo command is used to run a single command using the root privileges.

sudo useradd user_name

su actually means switch user. This command is mainly used to switch from one user to another.

su - user_name

g) whatis actually displays the one line manual page description.

man is the system's manual viewer. It can be used to display the manual page.

h) Ping command is the utility which basically helps to check the connectivity between two systems.

traceroute command is used to trace the packet fro your computer to the host and even shows the hops from the source system to destination system.


Related Solutions

Linux Commands 8.How would you find out information about systemdon your Linux workstation? 9.A user would...
Linux Commands 8.How would you find out information about systemdon your Linux workstation? 9.A user would like to put the firefoxprogram in the background –what would you type into the command prompt to do this? 10.For the program in above, how would you bring it back into the foreground? 11.What is the fork()function call? 12.In Linux what command sequence do we enter to stop a program? 13.What is the UIDcolumn in the output of the command ps -ef? 14.What is...
Your post should respond to the question(s) listed below and reflect an understanding of how the...
Your post should respond to the question(s) listed below and reflect an understanding of how the weekly readings and videos apply to the topic. (1) Initial discussion post must be at least 300 words per question. (2) APA requirement - your initial post should include (1) textbook reference and (1) external reference PLEASE PROVIDE RESPONSES TO THE (2) FOLLOWING QUESTIONS: 1. OB helps managers explain, predict, and influence behavior in the workplace. Identify behaviors that you are most interested in...
Prepare a discussion about the blue botton initiative and how it’s evolving. Discuss your thoughts about...
Prepare a discussion about the blue botton initiative and how it’s evolving. Discuss your thoughts about the pros and cons of blue botton. Include open notes initiative. Refer also to the Federsl Health IT Strategic Plan 2015-2020.
Discuss these in about a paragraph - Your thoughts on the future of Brick and Mortar...
Discuss these in about a paragraph - Your thoughts on the future of Brick and Mortar based commerce - Legality aside, your thoughts on the issue of taxation relative to EC sales
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.
Discuss your thoughts and ideas about how the healthcare system of the United States functions, what...
Discuss your thoughts and ideas about how the healthcare system of the United States functions, what are its limitations, what are its assets, and finally how you as a person involved in the healthcare system in America would approach fixing its problems/limitations?
Please share your insights and thoughts about this discussion post. the relationship between economic resources and...
Please share your insights and thoughts about this discussion post. the relationship between economic resources and claims to economic resources is that the assets of the entity are the economic resources owned by the entity and the claims to economic resources are the liabilities and the owner's equity. Therefore, the equation must balance because any transaction done by the entity has either same effect on both sides of the equation or opposite effect on either one side of equation. Net...
[Small Experiments] Try the commands or readings below and answer to the corresponding questions. Please note...
[Small Experiments] Try the commands or readings below and answer to the corresponding questions. Please note that the commands given should be tried on Linux or mac OSX terminal or Windows cmd window. The results of running these commands might be different in different systems. whois Use whois command to find information about a website (e.g. google.com, yahoo.com, or a website you pick). Enter the command in the form: "whois <URL>". Provide the print screen or cut and paste of...
Part 2 – Scripting Goals:  Write a bash script  Use linux shell commands within...
Part 2 – Scripting Goals:  Write a bash script  Use linux shell commands within your script  Provide user feedback  Use loops  Use conditionals Remember to use chmod +x to make your file executable! Each script is 5 points in the Specifications portion of the rubric. Don’t forget to maintain good standards and comments. Script 1 – Echo-back some information Write a script name hello.sh that will take the user’s first name as a command line...
Look up and use each of these Linux commands. (Each command will have two parts) Summarize...
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT