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 …

-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 …

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 …

__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 …

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 …

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 …