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.
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?
[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...
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...
In a 250-word post, choose one or more of the topics listed below. to write about,...
In a 250-word post, choose one or more of the topics listed below. to write about, include an active hyperlink to your resource... Look for an article or news story/video that relates to one or more of the following topics: Electric Charge Coulomb's Law Electric Field
After reading the chapter on perfect competition, think about the markets listed below and discuss how...
After reading the chapter on perfect competition, think about the markets listed below and discuss how close/far these markets could be to be perfecct competitive markets. Exlain why? Agritgultural Products, commodities such as corn and wheat Unskilled Labour (it means the occupations that could be filled by individuals who have not finished high school or only have a High School Degree
Select a company or organization and post your thoughts concerning how data could be used to...
Select a company or organization and post your thoughts concerning how data could be used to improve their outreach to customers in terms of marketing or sales.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT