Question

In: Computer Science

Please explain how to do following in Linux How to list process How to grep process...

Please explain how to do following in Linux

How to list process

How to grep process

how to kill a process

how to know pid

suppose proccess is down how to check it up and bring it up ??

please write the commands and execute and explain the process

Solutions

Expert Solution

  1. List Processes : We can use ps aux command to get all the running processes in your system. If you want to see less use ps aux | less  OR you can use top command to get the top processes.
  2. use pgrep process-name EX: pgrep firefox
  3. Kill the process We will use kill pid Example: kill 3332
  4. We can use the same pgrep as discussed above. EXamples are:


Related Solutions

CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it on mac and please...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it on mac and please add photos of the virtual machine.) Project 4-11 In this hands-on project, you configure and research filesystem attributes. 1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type touch toughfile and press Enter. Next, type lsattr toughfile at the command prompt...
please explain the following command sequences a) who | grep "Seneca" | sort | uniq >>who<<...
please explain the following command sequences a) who | grep "Seneca" | sort | uniq >>who<< b)sort <names > names c)sort ~/files/phone 1> /dev/null2>phone2 d)ls/root/&> files.log e)ls/etc/>files.log2>&1
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and add pictures of the machine.) Project 2-6 In this hands-on project, you properly shut down your Linux system. 1. Press CtrlþAltþF2 to switch to a command-line terminal (tty2), and then log in to the terminal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type poweroff to shut down your Linux system immediately. Which commands from Table...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and add pictures of the machine.) Project 2-3 In this hands-on project, you log in to a graphical terminal in Fedora Linux and interact with the GNOME and KDE desktops. 1. Switch to the graphical terminal (tty1) by pressing CtrlþAltþF1, click user1, supply the password of LNXrocks!, and click Sign In. Which desktop is started and why? 2. The first time you log into the...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and add pictures of the machine.) Project 2-5 In this hands-on project, you find information about commands using help utilities. 1. Press CtrlþAltþF2 to switch to a command-line terminal (tty2), and then log in to the terminal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type man –k cron and press Enter to view a list of...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and add pictures of the machine.) Project 2-4 In this hands-on project, you use and protect shell metacharacters. 1. Switch to a command-line terminal (tty2) by pressing CtrlþAltþF2 and log in to the terminal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type date;who and press Enter to run the date command immediately followed by the who...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and add pictures of the machine.) Project 2-2 In this hands-on project, you explore some command-line terminals on a Linux system and enter some basic commands into the BASH shell. 1. After your Linux system has been loaded, you are placed at a graphical terminal (tty1). Instead of logging in to this graphical terminal, press CtrlþAltþF2 to switch to a command-line terminal (tty2) and then...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and add pictures of the machine.) Project 4-6 In this hands-on project, you delete files and directories using the rmdir and rm commands. 1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type cd samples and press Enter. At the command prompt,...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and...
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and add pictures of the machine.) Project 4-7 In this hands-on project, you apply and modify access permissions on files and directories and test their effects. 1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type touch permsample and press Enter. Next,...
linux: Regular expressions file name: studentsyslog.txt Use a regular expression and grep or egrep to filter...
linux: Regular expressions file name: studentsyslog.txt Use a regular expression and grep or egrep to filter the file so the output displays only the items requested. Put your full command in the space provided 1.Show only the lines that end with an ellipses (3 dots) :
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT