Recent Notes

Displaying keyword search results 1 - 5
Created by Dr. Xi on September 29, 2008 23:21:38    Last update: January 16, 2010 23:36:05
Create a startup script for inetd Copy /etc/init.d/skeleton to /etc/init.d/inetd . Change the top section of the script to read: PATH=/usr/sbin:/usr/bin:/sbin:/bin DESC="In... Now inetd can be stopped/started/restarted like this: sudo /etc/init.d/inetd stop sudo /etc/init.... Add links to rc*.d $ sudo update-rc.d inetd defaults Adding sy... If you no longer need to start inetd at boot up: $ sudo update-rc.d -f inetd remove update-r... This would remove the links from the start up sequence but leave /etc/init.d/inetd in place. Contents of /etc/init.d/skeleton : #! /bin/sh ### BEGIN INIT INFO # Provide...
Created by Dr. Xi on December 04, 2009 04:33:05    Last update: December 04, 2009 04:33:05
Variable Meaning $_ The default or implicit variable. @_ Within a subroutine the array @_ contains the parameters passed to that subroutine. $a, $b Special package variables when using sort() $<digit> Contains the subpattern from the corresponding set of capturing parentheses from the last pattern match, not counting patterns matched in nested blocks that have been exited already. $. Current line number for the last filehandle accessed. $/ The input record separator, newline by default. $| If set to nonzero, forces a flush right away and after every write or print on the currently selected output channel. Default is 0 (regardless of whether the channel is really buffered by the system or not; $| tells you only whether you've asked Perl explicitly to flush after...
Created by Dr. Xi on October 01, 2008 23:13:51    Last update: October 01, 2008 23:14:51
Run levels locations Level Location 0 /etc/rc0.d 1 /etc/rc1.d 2 /etc/rc2.d 3 /etc/rc3.d 4 /etc/rc4.d 5 /etc/rc5.d 6 /etc/rc6.d Standard run levels ID Name Description 0 Halt Shuts down the system. S Single-User Mode Does not configure network interfaces or start daemons. 6 Reboot Reboots the system. Debian Linux (Ubuntu) ID Description 0 Halt 1 Single user mode 2-5 Full multi-user with console logins and display manager if installed 6 Reboot Red Hat Linux (Fedora) ID Description 0 Halt 1 Single user 2 Not used/User definable 3 Full multi-user, console logins only 4 Not used/User definable 5 Full multi-user, with display manager as well as console logins 6 Reboot
Created by Dr. Xi on September 29, 2008 23:03:40    Last update: September 29, 2008 23:04:08
Variables set automatically by shell: Variable Description $# Number of command-line arguments. $- Options currently in effect (arguments supplied to sh or to set). $? Exit value of last executed command. $$ Process number of current process. $! Process number of last background command. $0 First word; that is, command name. $n Individual arguments on command line (positional parameters). The Bourne shell allows only nine parameters to be referenced directly (n = 1-9); the Korn shell allows n to be greater than 9 if specified as ${n}. $* All arguments on command line ("$1 $2..."). $@ All arguments on command line, individually quoted ("$1" "$2" ...). Variables set automatically by Korn shell: Variable Description ERRNO Error number of last system call that failed. LINENO Current...
Created by Dr. Xi on June 12, 2007 01:52:21    Last update: June 12, 2007 01:52:21
Use the uname command to print information about the system: uname -a # report all system info (kern...