Professional Documents
Culture Documents
Quick Bash
Quick Bash
Quick Bash
|
|
|
| .-""- .
| |{\ /}|
Invisible Ghosts
Bring You.......
| (_ V _)
| |mmm|
| '---'
.-""- .
|{\ /}|
|
|
|
|
|
Written By Xe0r
(_ V _)
|mmm|
'---'
|
|
|
|
> 2003 And 4Eva<
|
|
>>> Dediacted to astalavista <<<
|
----------------------------------------------------------------------------Ever heard of bash?? Wonder what it is?? Wonder how to use it??
Well here you have a little crash course!!
I will not tell you much history about bash in this little crash course.
But if you wonder the name stands for Bourne-Again SHell.
Enough talk... Lets start!
As i'l guess you already know bash have something to do with Linux.
Bash is one of many command interfaces that is between the Linux kernel and you
(user) when you type in commands on your Linux shell!
Bash is the standard shell when you install Linux but if you have something
other you can just type 'bash' and hopefully (if bash is installed) you will
have the bash shell.
Bash is the most common used shell and its very powerfull for whatever you will
need! It is some exeptions but I will not talk about them here.
Now you may wonder some basic bash commands to get you starting!
Notes that with all this commands you can type --help or man command to get help
,
like this 'ls --help' or 'man ls'.
Also note that all these commands are actually programs soo if you miss one or t
wo
of them dont panic.. ;)
Command:
Description:
Example:
ls
cd
r/
tree
ls
cd folde
tree
chmod
Setting file/folder permission
0 secret_source.c
chown
Setting owner of files/folder
0r note.txt
chgrp
Setting group of files/folder
ers note.txt
chmod 70
uptime
ps
uname
history
whereis
uptime
ps aux
uname -a
history
whereis
chown xe
chgrp us
perl
w
Shows you whois loged in to that box
who
Almost same but with less output
users
Shows you only the usernames loged in
talk
Talk live with another user
r
ytalk
Improved talk!
0r
whois
Wonder who owns an domain?
talavista.net
finger
Finds out information about an user
e0r
ssh
An ssh client
n.myshellhost.org
telnet
An telnet client
0.0.0.1
w
who
users
talk xe0
cp
Copying
tant.txt backup_importans.txt
mv
Moving
mation.txt old_information.txt
rm
Removing
txt
cp impor
passwd
clear
passwd
clear
pico
dme.txt
vi
e.txt
vim
me.txt
Text editor
pico rea
vi readm
Improved vi
vim read
ytalk xe
whois as
finger x
ssh logi
telnet 1
mv infor
rm info.
Well.. That was some of the basic commands you can use. Here is some more
advanced stuff you can do:
Command:
Information:
[TAB]
[Arrows]
Use the up arrow and you will get the last typed command,
the down arrow goes down on the command list after you
pressed up. And finally Left & Right move where you gonna
write like any other text editors.
rep'.
You can think of 'grep' as grabbing something! Its very usefull,
here
are some examples, 'ps aux|grep nobody' this shows all prossess
that is
running under nobody! What it do is grabbing all the lines with
the
words nobody in and send that to the screen.
!
When you run the 'history' command you will get alot of
commands with some numbers to the right. If you dont want
to type an command that is in the history again you can
just type !123 where 123 is the command number in the
history. The !123 part is just as if you typed the command.
In other words if you typed 'whereis histor' and that gets
the number 123. And you figured you forgot an "y" in history
you can type '!123y' to get the last character.
Note that this command is only usefull if
the command is long back in the history! (Read about [Arrows]
if you wonder why).
Well... Thats all for now. Im not writing so much this time becouse im unsure
if there is many that is relly interested in this..
If i see there is lot of interest in this topic i'l come back with a lot more!!
;]
Therefor I also think that its important that you vote.
If you is one of those people that wonder if you gonna get you an Linux shell (b
ash)
I will tell you that I have never had more fun with simple text!! ;>
_______________________________________________________________________
IG (C) 2003 and Foreva
All rights worth a Invisible Ghost
Copy this and we will come for you