commandline session $> 1 $flock 1 $ls 1 $echo 1 > 1 $cat 1 1 $ls -l total 4 -rw-r–r– 1 jeffrin jeffrin 2 Aug 11 18:24 1 $flock -n 1 $echo 1 > 1 $ls -l total 4 -rw-r–r– 1 jeffrin jeffrin 2 Aug 11 18:29 1 $1 /var/loc local/ lock/ $1> /var/lock/mylock $cat …
Category Archives: Uncategorized
-p option no error if existing, make parent directories as needed
commandline session $mkdir 1 $pwd /home/jeffrin/Test $ls 1 $mkdir 2 $ls 1 2 $cd 2/ $mkdir -p hello/world $ls hello $cd hello/ $ls world $cd world/ $ls $pwd /home/jeffrin/Test/2/hello/world $cd – /home/jeffrin/Test/2/hello $pwd /home/jeffrin/Test/2/hello $ls world $ inner working mkdir.c
split – split a file into pieces . split [OPTION]… [INPUT [PREFIX]]
commandline session $ls sexample $cat sexample a b c d e f g h i j k l $split 3 sexample split: cannot open ‘3’ for reading: No such file or directory $split sexample 3 $ls 3aa sexample $ls -l total 8 -rw-r–r– 1 jeffrin jeffrin 24 Jul 31 21:52 3aa -rw-r–r– 1 jeffrin jeffrin …
Continue reading “split – split a file into pieces . split [OPTION]… [INPUT [PREFIX]]”
mountpoint – see if a directory is a mountpoint
commandline session $mountpoint Usage: mountpoint [-q] [-d] [-x] path $mountpoint / / is a mountpoint $mountpoint /var /var is not a mountpoint $mountpoint /usr /usr is not a mountpoint $mountpoint -x /dev/sda1 8:1 $mountpoint -x /dev/sda2 8:2 $mountpoint -x proc mountpoint: proc: No such file or directory $mountpoint -x /proc/ mountpoint: /proc/: not a block …
Continue reading “mountpoint – see if a directory is a mountpoint”
dict is a client for the Dictionary Server Protocol (DICT)
commandline session $dict jeffrin No definitions found for “jeffrin” $dict -S Strategies available: exact Match headwords exactly prefix Match prefixes nprefix Match prefixes (skip, count) substring Match substring occurring anywhere in a headword suffix Match suffixes re POSIX 1003.2 (modern) regular expressions regexp Old (basic) regular expressions soundex Match using SOUNDEX algorithm lev Match headwords …
Continue reading “dict is a client for the Dictionary Server Protocol (DICT)”
Print the prime factors of each specified integer NUMBER
commandline session $factor 5 5: 5 6 6: 2 3 7 7: 7 8 8: 2 2 2 9 9: 3 3 10 10: 2 5 11 11: 11 ^C $factor 12 12: 2 2 3 $
pidof — find the process ID of a running program.
commandline session $pidof $ $pidof $pidof init 1 $pidof vmlinuz $ $echo $? 1 $pidof init 1 $echo $? 0 $pidof rootd 3706 $pidof kcore $echo $? 1 $
groups – print the groups a user is in
commandline session $groups jeffrin tty dialout audio www-data mysql wireshark $groups –version | grep David Written by David MacKenzie and James Youngman. $ $groups jeffrin jeffrin : jeffrin tty dialout audio www-data wireshark mysql $groups user groups: user: no such user $groups mysql mysql : mysql $groups wireshark groups: wireshark: no such user $groups www-data …
GET THE HANG . Update generated configuration files using autoreconf command
$autoreconf -v -i autoreconf: Entering directory `.’ autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I m4 autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory c++-impl to autoreconf autoreconf: Entering directory `c++-impl’ autoreconf: running: aclocal autoreconf: configure.ac: adding subdirectory stl to autoreconf autoreconf: Entering directory `stl’ autoreconf: running: libtoolize –copy libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4′. …
Continue reading “GET THE HANG . Update generated configuration files using autoreconf command”
Search for: SEARCH