Connected From This 1. kill command can be used to send TERM signal. 2. SIGTERM 15 Term Termination signal Signal is an user space interrupt. Sending a Signal The following system calls and library functions allow the caller to send a signal: raise(3) Sends a signal to the calling thread. kill(2) Sends a signal to …
Category Archives: Uncategorized
make – GNU make utility to maintain groups of programs
A UNIX Command $make gcc -g -O2 -lcairo -I/usr/include/cairo/ -L/usr/lib/ `pkg \ -config –cflags –libs gtk+-2.0 gthread-2.0` – \ DVERSION=\”0.0.1\” language.c -o language $ $ls autom4te.cache config.status configure.in CVS language Makefile TODO config.log configure COPYING Documentation language.c Makefile.in $ Sample Makefile Contents CC = gcc VERSION = 0.0.1 CFLAGS = -g -O2 -lcairo -I/usr/include/cairo/ -L/usr/lib/ …
Continue reading “make – GNU make utility to maintain groups of programs”
history – shows command history
A UNIX Command $history 11 ls 12 vi kernel_start.s 13 as kernel_start.s 14 ls -l 15 sh a.out 16 ls 17 vi kernel_start.s 18 ls 19 cd linux/ 20 ls 21 cd boot/ 22 ls 23 as boot.s 24 cd 25 cd linux-2.6 26 ls 27 cd arch/ 28 ls 29 cd .. 30 find …
chrt – manipulate real-time attributes of a process
A UNIX Command $chrt -m SCHED_OTHER min/max priority : 0/0 SCHED_FIFO min/max priority : 1/99 SCHED_RR min/max priority : 1/99 SCHED_BATCH min/max priority : 0/0 SCHED_IDLE min/max priority : 0/0 $chrt -b -p 0 4555 $chrt -p 4555 pid 4555’s current scheduling policy: SCHED_BATCH pid 4555’s current scheduling priority: 0 $chrt -o -p 0 4555 …
Continue reading “chrt – manipulate real-time attributes of a process”
vdir – list directory contents
A UNIX Command $vdir symmel/ total 20 drwxr-xr-x 2 jeffrin jeffrin 4096 Jul 27 01:11 Docs -rw-r–r– 1 jeffrin jeffrin 88 Jul 25 00:57 kernel_start.asm -rw-r–r– 1 jeffrin jeffrin 78 Jul 25 00:57 kernel_start.s drwxr-xr-x 10 jeffrin jeffrin 4096 Jul 25 00:57 linux drwxr-xr-x 2 jeffrin jeffrin 4096 Jul 26 23:55 loader -rw-r–r– 1 jeffrin …
skill, snice – send a signal or report process status
A UNIX Command $skill Usage: skill [signal to send] [options] process selection criteria Example: skill -KILL -v pts/* The default signal is TERM. Use -l or -L to list available signals. Particularly useful signals include HUP, INT, KILL, STOP, CONT, and 0. Alternate signals may be specified in three ways: -SIGKILL -KILL -9 General options: …
Continue reading “skill, snice – send a signal or report process status”
parameter tcp_retries1
A UNIX Parameter $cat /proc/sys/net/ipv4/tcp_retries1 3 $echo 4 > /proc/sys/net/ipv4/tcp_r Parameter Definition This value influences the time, after which TCP decides, that something is wrong due to unacknowledged RTO retransmissions, and reports this suspicion to the network layer. RFC 1122 recommends at least 3 retransmissions, which is the default. Parameter Code Internals snippet 1 { …
hcitool – configure Bluetooth connections
A UNIX Command $hcitool hcitool – HCI Tool ver 4.89 Usage: hcitool [options] [command parameters] Options: –help Display help -i dev HCI device Commands: dev Display local devices inq Inquire remote devices scan Scan for remote devices name Get name from remote device info Get information from remote device spinq Start periodic inquiry epinq Exit …
Continue reading “hcitool – configure Bluetooth connections”
basename – strip directory and suffix from filenames
A UNIX Command $basename basename: missing operand Try `basename –help’ for more information. $basename /usr/bin/ bin $basename /usr/ usr $ $basename /usr/bin/less less $basename /usr/include/ma malloc.h math.h $basename /usr/include/math.h math.h $basename /usr/include/math.h . math.h $basename /usr/include/math.h .h math $basename /usr/lib/libgccpp.so.1 libgccpp.so.1 $basename /usr/lib/libgccpp.so.1 .1 libgccpp.so $ UNIX Explanation `basename’ removes any leading directory components from …
Continue reading “basename – strip directory and suffix from filenames”