commandline session $nmap 127.0.0.1 Starting Nmap 6.00 ( http://nmap.org ) at 2013-11-24 17:56 IST Nmap scan report for localhost (127.0.0.1) Host is up (0.00019s latency). Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds $nmap …
Category Archives: Bash
What does the command “netstat ” do ?
ABOUT netstat In computing, netstat (network statistics) is a command-line network utility tool that displays network connections for the Transmission Control Protocol (both incoming and outgoing), routing tables, and a number of network interface (network interface controller or software-defined network interface) and network protocol statistics. It is available on Unix-like operating systems including macOS, Linux, …
GNU/Linux BASH builtin commands
commandline session $pwd /home/jeffrin/playground $which pwd /bin/pwd $ $/bin/pwd /home/jeffrin/playground $/bin/pwd -P /home/jeffrin/playground $pwd -P /home/jeffrin/playground $help pwd pwd: pwd [-LP] Print the name of the current working directory. Options: -L print the value of $PWD if it names the current working directory -P print the physical directory, without any symbolic links By default, `pwd’ …
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 …
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 …
GNU/Linux Commands for Beginners : alias
this tutorial content may not be accurate [youtube https://www.youtube.com/watch?v=3Dnkt-FcExg?rel=0&w=560&h=315]
Bash Shell command : file
this tutorial content may not be accurate [youtube https://www.youtube.com/watch?v=E-SPhtL-jTM?rel=0&w=560&h=315]
GNU/Linux Commands for Beginners: man command
this tutorial content may not be accurate [youtube https://www.youtube.com/watch?v=JmHo2aV9ihk?rel=0&w=560&h=315]