Sunday, April 27, 2014

jobs

  •   jobs command example

Print currently running jobs and their status.



Syntax
      jobs [OPTIONS] [PID]


Options:
   -c 
   --command  Print the command name for each process in jobs

   -g
   --group    Only print the group id of each job

   -h
   --help     Display a help message and exit

   -l
   --last     Only the last job to be started is printed

   -p
   --pid      Print the process id for each process in all jobs 
On systems that supports this feature, jobs will print the CPU usage of each job since the last command was executed. The CPU usage is expressed as a percentage of full CPU activity. Note that on multiprocessor systems, the total activity may be more than 100%.


Example

$ jobs

Related Posts:

  • ifconfig ifconfig command examples Use ifconfig command to view or configure a network interface on the Linux system. View all the interfaces along with status. $ ifconfig -a Start or stop a specific interface using up and… Read More
  • less    less command examples less is very efficient while viewing huge log files, as it doesn’t need to load the full file while opening. $ less huge-log-file.log One you open a file using less command, follow… Read More
  • gzip   gzip command examples   To create a *.gz compressed file: $ gzip test.txt To uncompress a *.gz file: $ gzip -d test.txt.gz Display compression ratio of the compressed file using gzip -l $ … Read More
  • kill kill command examples Use kill command to terminate a process. First get the process id using ps -ef command, then use kill -9 to kill the running Linux process as shown below. You can also use killall, pkill, xkill … Read More
  • mysql  mysql  command example mysql is probably the most widely used open source database on Linux. Even if you don’t run a mysql database on your server, you might end-up using the mysql command ( client ) to connect … Read More

0 comments:

Post a Comment