Tag: GNU

Bash – netstat ( network statistics related )

commandline session $netstat –tcp Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 debian.local:39585 74.125.169.8:http ESTABLISHED tcp 0 0 debian.local:39586 74.125.169.8:http ESTABLISHED tcp 0 0 debian.local:47951 maa03s17-in-f6.1e:https ESTABLISHED tcp 0 0 debian.local:47203 maa03s17-in-f0.1e1:http ESTABLISHED $ $netstat –tcp –numeric Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address …

Read More

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

Read More

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

Read More

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 …

Read More

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 …

Read More

GNU/Linux Commands for Beginners : alias

this tutorial content may not be accurate

Read More

GNU/Linux Commands for Beginners: man command

this tutorial content may not be accurate

Read More

Hack Emacs – Working with Buffers

this tutorial content may not be accurate

Read More

GNU/Linux Terminal – File Permissions! (Chmod, Chown and Chgrp)

this tutorial content may not be accurate

Read More

Hack Emacs – A Technical Introduction to GNU Emacs

this tutorial content may not be accurate

Read More