My RHEL Notes: Difference between revisions

From GotOpinion
Jump to navigation Jump to search
m Created page with "== general notes == $ cmd [-opt] [arguments] cmd uses $PATH and arguments uses $PWD. Arguments are local to current working directory Press TAB TAB to list available commands ..."
 
Line 21: Line 21:


Command column square brackets [ ]  mean kernel started process.
Command column square brackets [ ]  mean kernel started process.
kill -l // list kill options
process priority
# nice cmd
# renice cmd
# jobs // to get job #
kill -KILL %[job #] // to kill by job #
== disk usage ==
use du command
# du -sh /* 2> /dev/null // use STD ERROR to bit bucket
# ps -eo "%c %n %y" // see ps man page, like %P & %U
<center>[[Linux | To Linux]]</center>

Revision as of 11:19, 28 September 2011

general notes

$ cmd [-opt] [arguments]

cmd uses $PATH and arguments uses $PWD. Arguments are local to current working directory

Press TAB TAB to list available commands in $PATH or list available arguments in $PWD.

managing system resources

Ctrl+Z
jobs
fg %[job #]
ps [-fax]

Process Status can be suspended (S+PROCESS STATE CODES in $ ps man page to view), stopped (T), running (R+), zombie

running process is flagged to be scheduled in CPU cycles

  1. ps -ax

Command column square brackets [ ] mean kernel started process.

kill -l // list kill options

process priority

  1. nice cmd
  2. renice cmd
  1. jobs // to get job #

kill -KILL %[job #] // to kill by job #

disk usage

use du command

  1. du -sh /* 2> /dev/null // use STD ERROR to bit bucket



  1. ps -eo "%c %n %y" // see ps man page, like %P & %U
To Linux