SEVEN WAYS TO LOGOUT OF BASH
how many ways do you know of to log out from a Bash shell??
here are atleast seven commands that you may use to log out -but
please be aware
that some of the commands are dangerous if you logged in as a ROOT
user because they could stop
services that usually run as root.
1.logout
2.exit
3.CTRL+l
4.export TMOUT=1
5.fuser -k 'pwd'(don't run it as ROOT)
6.skill -KILL -u 'whoami'(don't run it as ROOT)
7.kill -9 $$(don't run it as ROOT)
TEXT-BASED WEB BROWSING
you may use elinks or links in text mode to browse websites from a
console.
elinks
http://www.google.com
this will open google in your home browser.press ESC key to access the
menu where ,among other
items,you will find FILE->EDIT to close the browser.
USING "!$"
another wonder of the simple shell variable is !$. Lets say you want
to make a directory,go into it
then rename it.
the flow of commands would be:
$ mkdir ur_dir
$ mv ur_dir my_dir
$ cd my_dir
linux has a shorter and smarter way to do it.
$ mkdir ur_dir
$ mv !$ my_dir
$ cd !$
!$ points to last String in the command String
these commands are fun and pretty useful too.though most of the LUG
members would know these
,but i thought this a good way to provoke interest among people who
are new.
THanks