parsed.org

Tips by tag: control

Changing Process Priority by xinu on Mar 10, 2005 01:52 PM

Ever been on a machine that was ailing and just wouldn't respond? As soon as you're root, lower the priority of the offending process ID(s) (in this example, 1103) by using the 'renice' command:

# renice -19 1103
commandsconfigurationcontroldebuggingmonitoringpriorityprocessrecoveryrenicerescuesecurityshell

Inserting a control character in vi(m) on Linux is a simple case of pressing Ctrl+V and then pressing your control character. Windows insists on pasting with a Ctrl+V, so you do the following:

test
controlgvimpastewindows
Remove Control Characters with Perl by xinu on Aug 28, 2008 08:56 AM

With the following code you can be rid of control characters forever:

$string_with_ctrl_characters =~ tr/\040-\176/ /c;
asciicontrolperl
RSS