watch -n1 command
Example:
watch -n5 "ls -lrt test"
Above command will execute every 5 seconds
watch -n1 command
Example:
watch -n5 "ls -lrt test"
Above command will execute every 5 seconds
% jobsThe job numbers will be shown in square brackets ([]), followed by the notation ``Stopped'' (for suspended jobs) or ``Running'' (for jobs that are still executing).
% ps -gxHere is an example of output from this command:
PID TT STAT TIME COMMAND
12030 p5 S 0:01 -csh (csh)
12068 p5 T 1:46 emacs foo
12788 p5 R 0:00 ps -gx
The first column is the process ID. The second column tells what terminal is controlling it (in this case, ttyp5). Next comes the current status (S for sleeping, T for stopped, R for running). The next column tells how much time it has spent.bg command can be used to resume a suspended process in the background. When used with no arguments, the bg command will continue the last suspended job. To resume job number 2, you would type the command:% bg %2
fg command resumes a suspended process in the foreground. For example, to resume job 1 in the foreground, you would type this command:% fg %1
%1 would resume job 1 in the foreground. This command:% %2&would resume job 2 in the background, because it ends with an ampersand.
% kill %1