Tag: bash

Hacking with the quote command on Bash shell

3.1.2 Quoting ————- Quoting is used to remove the special meaning of certain characters or words to the shell. Quoting can be used to disable special treatment for special characters, to prevent reserved words from being recognized as such, and to prevent parameter expansion. Each of the shell metacharacters (*note Definitions::) has special meaning to

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

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–