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...
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....
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...
***************************************************** * 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...
Please discuss your thoughts about your own spirituality and how you engage with this dimension of...
Please discuss your thoughts about your own spirituality and how you engage with this dimension of the human condition. What parallels do you see with the neolithic people who built stonehenge? Why do we as humans need to find meaning beyond our earthly existence?
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
(Summarize your thoughts to the below post) Until you've actually been there and done that, you...
(Summarize your thoughts to the below post) Until you've actually been there and done that, you don't really know for sure what to expect. This concept is pretty much applicable to anything in life, whether your talking about having your first child or taking a multinational company into a new market. Experience can mean everything to how things flow or don't and that is before anything uncontrollable is mixed in. As for the multinational companies trying to break into emerging...
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?
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