UNIX Command $ls AUTHORS autom4te.cache ChangeLog CVS cvs.sh doc po README src TODO $ls -m AUTHORS, autom4te.cache, ChangeLog, CVS, cvs.sh, doc, po, README, src, TODO $ UNIX Explanation -m fill width with a comma separated list of entries Theory Drop In computer science, an array data structure or simply array is a data structure consisting …
Author Archives: jeffrin
ls ( -i option )
UNIX Command $ls bp cfg.c cfg.h CVS gtk Makefile sample.cfg simpleproxy.c $ls -i 5448322 bp 7569479 cfg.h 5448162 gtk 925726 sample.cfg 7569478 cfg.c 5448150 CVS 8489600 Makefile 5448260 simpleproxy.c $ UNIX Explanation -i, –inode print the index number of each file Theory Drop In computing, an index-node (inode) is a data structure on a traditional …
bubble sort testing… 0.00007 Ver — 8000 No.'s related
$time php bubble.php real 0m30.911s user 0m28.362s sys 0m0.268s $time php bubble.php real 0m32.206s user 0m29.726s sys 0m0.208s $time php bubble.php real 0m30.047s user 0m28.366s sys 0m0.220s $time php bubble.php real 0m30.306s user 0m28.226s sys 0m0.248s $time php bubble.php real 0m29.819s user 0m28.258s sys 0m0.252s $time php bubble.php real 0m30.567s user 0m28.598s sys 0m0.244s $time …
Continue reading “bubble sort testing… 0.00007 Ver — 8000 No.'s related”
-S option . listing directory contents sorted by file size
GNU command $ls -l -Gg total 124 -rwxr-xr-x 1 54161 Dec 12 18:32 bp -rw-r–r– 1 8917 Sep 22 2006 cfg.c -rw-r–r– 1 1638 Sep 22 2006 cfg.h drwxr-xr-x 2 4096 Oct 26 17:43 CVS drwxr-xr-x 3 4096 Oct 26 00:48 gtk -rw-r–r– 1 104 Oct 26 00:49 Makefile -rw-r–r– 1 718 Dec 12 18:33 …
Continue reading “-S option . listing directory contents sorted by file size”
ls (-t option) sort by modification time
GNU command $ls -l total 40 drwxr-xr-x 3 jeffrin jeffrin 4096 Aug 18 20:16 beautifulwork drwxr-xr-x 5 jeffrin jeffrin 4096 Aug 18 20:16 books drwxr-xr-x 2 jeffrin jeffrin 4096 Aug 18 20:16 bugs-general drwxr-xr-x 2 jeffrin jeffrin 4096 Oct 13 20:27 config-files drwxr-xr-x 3 jeffrin jeffrin 4096 Aug 24 22:03 debian-howtos drwxr-xr-x 2 jeffrin jeffrin …
ls (–author option) list directory contents
UNIX Command $ls -l –author Cairo-0.2.0.tgz -rw-r–r– 1 jeffrin jeffrin jeffrin 164022 Oct 20 21:05 Cairo-0.2.0.tgz $ls -l Cairo-0.2.0.tgz -rw-r–r– 1 jeffrin jeffrin 164022 Oct 20 21:05 Cairo-0.2.0.tgz $ UNIX Explanation –author with -l, print the author of each file
__generic_file_aio_write – write data to a file
1. __generic_file_aio_write – write data to a file ssize_t __generic_file_aio_write(struct kiocb * iocb, const struct iovec * iov, unsigned long nr_segs, loff_t * ppos); iocb IO state structure (file, offset, etc.) iov vector with data to write nr_segs number of segments in the vector ppos position where to write 2. Classroom Asynchronous I/O, or non-blocking …
Continue reading “__generic_file_aio_write – write data to a file”
readelf (-a option) Displays information about ELF files
UNIX Command $cat hello.c #include main() { int d; scanf(“%d”,d); printf(“%d”,d); } $gcc hello.c $ulimit -c unlimited $./a.out 3 Segmentation fault (core dumped) $readelf -s core $readelf -a core ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2’s complement, little endian …
Continue reading “readelf (-a option) Displays information about ELF files”
vm_insert_page – insert single page into user vma
1. vm_insert_page – insert single page into user vma int vm_insert_page(struct vm_area_struct * vma, unsigned long addr, struct page * page); vma user vma to map to addr target user address of this page page source kernel page 2. Classroom The virtual memory area (VMA) is the kernel data structure used to manage distinct regions …
Continue reading “vm_insert_page – insert single page into user vma”
grep ( -c option )
UNIX Command $grep -c pack resume.txt 0 $grep -c Linux resume.txt 9 $grep -c Lin resume.txt 9 $grep -c Li resume.txt 9 $grep -c L resume.txt 15 $grep -c engineer resume.txt 2 $grep -c 1976 resume.txt 1 $grep -c GNU resume.txt 5 $ UNIX Explanation For (grep -c) Suppress normal output; instead print a count …