commandline session $find . -mtime +1000000 $find . -mtime +100000 $find . -mtime +10000 $find . -mtime +1000 ./wallphotos-old ./wallphotos-old/8002_1600x1200-wallpaper-cb1267712759.jpg ./wallphotos-old/18738_1600x1200-wallpaper-cb1271712460.jpg ./wallphotos-old/3767_1600x1200-wallpaper-cb1267712187 (1).jpg ./wallphotos-old/8020_1600x1200-wallpaper-cb1267712767.jpg ./wallphotos-old/3664_1600x1200-wallpaper-cb1267712118.jpg ./wallphotos-old/17801_1600x1200-wallpaper-cb1273013536.jpg $
Monthly Archives: November 2013
head and tail Command Related
commandline session following session display may not be accurate $sudo head dmesg [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.46-1+deb7u1 [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-amd64 root=UUID=3219e911-81fb-4d52-ba7c-117a58d09312 ro quiet [ 0.000000] BIOS-provided physical RAM map: [ …
Debian GNU/Linux Easter Eggs and Game Related
commandline session the following session may not have an accurate display. $apt-get help $apt-get help | tail -f Attempt to correct a system with broken dependencies in place -m Attempt to continue if archives are unlocatable -u Show a list of upgraded packages as well -b Build the source package after fetching it -V Show …
Continue reading “Debian GNU/Linux Easter Eggs and Game Related”
DEBUG Method Development . LOG.0.2
method to downgrade debian from a unstable tree to stable tree step 1 put the following content in /etc/apt/preferences.d/default Package: * Pin: release a=stable Pin-Priority: 1001 step 2 make your sources.list to stable pointers. step 3 apt-get update apt-get upgrade next do sensibly To Fix Things, work on a stable system and chroot to the …
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 Command: Viewing Resources
commandline session $df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 224G 7.5G 205G 4% / udev 10M 0 10M 0% /dev tmpfs 336M 664K 336M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 672M 19M 1004M 3% /run/shm $du -sh /etc/ du: cannot read directory ‘/etc/polkit-1/localauthority’: Permission denied du: cannot read directory …
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 …
Continue reading “GNU/Linux Commands for Beginners: which and whatis”
GNU/Linux command : Changing Passwords
commandline session $sudo – [sudo] password for jeffrin: sudo: -: command not found $ $su – Password: root>passwd -e jeffrin passwd: password expiry information changed. root>exit logout $login jeffrin login: Cannot possibly work without effective root $sudo login jeffrin [sudo] password for jeffrin: sudo: Account or password is expired, reset your password and try again …