watch – execute a program periodically

commandline session following commandline session may not be accurate. $vmstat procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 1 0 0 2246368 32720 497284 0 0 217 10 236 436 3 1 92 3 $watch vmstat $watch -n 0.5 vmstat $watch… Continue reading watch – execute a program periodically

file — determine file type

commandline session $ls faq favicon.ico index.html kernel.css mirrors pub robots.txt $file kernel.css kernel.css: ASCII text $file -l | head Set 0: Binary patterns: Text patterns: Set 1: Binary patterns: Text patterns: Set 0: Binary patterns: Strength = 340 : sc68 Atari ST music [] Strength = 340 : T64 tape Image [] $file -l |… Continue reading file — determine file type

linux 0.01 boot.s (copy from linux 0.01)

boot.s is loaded at 0x7c00 by the bios startup routines and moves itself out of the way to address 0x90000, and jumps there.It then loads the system at 0x10000, using BIOS interrupts. Thereafter it disables all interrupts,moves the system down to 0x0000 , changes to protected mode and calls the start of system. The system… Continue reading linux 0.01 boot.s (copy from linux 0.01)

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