Handling File Name With Space

commandline session $ > test file Usage: file [-bchikLlNnprsvz0] [–apple] [–mime-encoding] [–mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file … file -C [-m magicfiles] file [–help] $ls test $ls -l total 0 -rw-r–r– 1 jeffrin jeffrin 0 Nov 8 23:59 test $> “test file” $ls test test file $ls -l total 0 -rw-r–r– …

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 …

GNU/Linux Commands for Beginners: which and whatis

commandline session $which ls /bin/ls $which firefox /usr/bin/firefox $which grep /bin/grep $which whatis /usr/bin/whatis $whatis which which (1) – locate a command $whatis whatis whatis (1) – display manual page descriptions $whatis linux linux: nothing appropriate. $whatis kcore kcore: nothing appropriate. $whatis mysql mysql: nothing appropriate. $whatis locate locate (1) – find files by name …