logname – print user´s login name

A UNIX Command $logname jeffrin $logname –help Usage: logname [OPTION] Print the name of the current user. –help display this help and exit –version output version information and exit Report logname bugs to bug-coreutils@gnu.org GNU coreutils home page: General help using GNU software: For complete documentation, run: info coreutils ‘logname invocation’ $logname –version logname (GNU …

csplit – split a file into sections determined by context lines

A UNIX Command $cat test.text hello how are you ? $csplit test.text 1 0 20 $cat xx00 $cat xx01 hello how are you ? $rm xx* $csplit test.text 2 6 14 $cat xx00 hello $cat xx01 how are you ? $rm xx* $csplit test.text 3 10 10 $cat xx01 are you ? $cat xx00 hello …

truncate – shrink or extend the size of a file to the specified size

A UNIX Command $cat example.text hello $ls -l example.text -rw-r–r– 1 jeffrin jeffrin 6 Jun 21 02:32 example.text $truncate -s 10 example.text $ls -l example.text -rw-r–r– 1 jeffrin jeffrin 10 Jun 21 02:35 example.text $hexdump example.text 0000000 6568 6c6c 0a6f 0000 0000 000000a $cat example.text hello $truncate -s 9 example.text $ls -l example.text -rw-r–r– 1 …

xwd – dump an image of an X window

A UNIX Command $xwd -out ldump $du -h ldump 1.4M ldump $hexdump -n 1 ldump 0000000 0000 0000001 $hexdump -n 5 ldump 0000000 0000 7600 0000 0000005 $hexdump -n 10 ldump 0000000 0000 7600 0000 0700 0000 000000a $hexdump -n 50 ldump 0000000 0000 7600 0000 0700 0000 0200 0000 1000 0000010 0000 0004 0000 …

sound: Fixed line limit issue in sound/ac97_bus.c

From a2c2867876c246420a199a0fb4c36ad2965a42cc Mon Sep 17 00:00:00 2001 From: Jeffrin Jose Date: Mon, 6 Dec 2010 19:27:53 +0530 Subject: [PATCH] sound: Fixed line limit issue in sound/ac97_bus.c This is a patch to the sound/ac97_bus.c file that fixes up a 80 character line limit issue found by the checkpatch.pl tool. Signed-off-by: Jeffrin Jose — sound/ac97_bus.c | 6 …

touch -c behaves incorrectly (non-POSIX)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439033 POSIX says about ‘touch'[*]: -c Do not create a specified file if it does not exist. Do not write any diagnostic messages concerning this condition. [*] http://www.opengroup.org/onlinepubs/009695399/utilities/touch.html But under some conditions, ‘touch’ writes a diagnostic message when the file doesn’t exist. For instance: vin:~> mkdir dir vin:~> chmod 000 dir vin:~> /usr/bin/touch -c dir/file …

coreutils: ls –quoting-style=c and | (pipe) symbol

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432945 output of ls –quoting-style=c is incorrect when filename contains | (pipe) symbol. Steps: mkdir /tmp/bla touch “/tmp/bla/filename with | pipe” ls –quoting-style=c /tmp/bla returns: “filename with \| pipe” thanks, -Mathieu Ref: http://groups.google.com/group/comp.lang.c/browse_thread/thread/0db8070def6a4453