Nov 24, 2009

Help A Beginner To Learn To Use Linux Terminals - Help linux terminals

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Operating Systems > Linux

Help A Beginner To Learn To Use Linux Terminals - Help linux terminals

sinx
Help linux terminals:

well I don't know how to use terminals sad.gif i am just a starter in linux so can someone plz explain it nice and slow how to use it ?

Thx

Comment/Reply (w/o sign-up)

qwijibow
Linux terminals are your comunication with BASH
Bourne, Again, SHell.
Basically the latest shell.

You could spend months learning bash, its a very usefull tool.

Its a method of comunicating with running programs, its also a programming language.

Fortunatly, you dont need to know everything about BASH to use it.

This will get you started,
http://linux.org.mt/article/terminal

it covers the basics you need.
but its not a complete guide, it doesnt go into programming, or advance techniques.


Comment/Reply (w/o sign-up)

Jeigh
Yea I would say just look through a few tutorials, and remember that typing man command will give you the manual for whatever command you give it, this helps alot if you like to explore things on your own.

Few quick tips:
ls - lists all files in current directory
rm/rmdir - remove a file or directory respectivly... DOES NOT GIVE YOU A "are you sure you want to delete?" type message. So be careful lol.
cd directory will move you around the directories.

so yes, read some tutorials, play around, and enjoy. Once you can use the terminal its got some awesome fun stuff to use

Comment/Reply (w/o sign-up)

hatim
Few trick which may help you:

when typing a command whose fullcommand name lets say is this_command press TAB key after lets say this_ ..it will provide you with some options to complete the name or complete the name of the command. This also goes for any file name.

~/ is you home director ..ie when ever you do cd ~/ you will go to your home directory. Similary if you do ~user/ you will go to that users directory ..if you have permission.

If you are outside of Grpahics mode ..you can use Alt F1 , aLT F2 etc to switch to diffet terminals ..if you have graphics on you can use Ctrl Alt F1 etc to go to text mode..and normally Alt Ctrl F7 to back to graphics (depends ..how many terminals you are running..i think this is some thing default ..but this could be differnt ..ie F5 or F6 perhaps)

one of the most useful thin in linux is grep. You can capture ..or uncapture a line with it (lay man way of saying it)
A way to do is by pipes

lest say you know that

cat blah

will spill out the contents of file blah on screen. You can use

cat blah | grep name

to capture all lines with text name in them

similarly

cat blah | grep -v name

will capture all lines ..except for lines having text name in them

just few tricks ..which will help you get started

Read the tutorials mentioned..preferably from some University Unix Course Website ..it will give you a comprehensive background

smile.gif

 

 

 


Comment/Reply (w/o sign-up)

yordan
Very nice topic.
the question is : help with "terminal".
And the answer is a help for bash !
Ok, that's rather true.
Terminal is a way of talking with your computer, giving instructions directly to Unix. And bash is a sub-language of Unix, so it's usefuls for that purpose.
And for course, it's not the only way. Bourne Shell, ksh and csh are other sub-languages, not very different from each other, and all similar by the fact that they are Unix commande languages.

Comment/Reply (w/o sign-up)

jedipi
I think you need to understand the Linux file system first..

The Linux/UNIX filesystem is made up mainly of two types of files - normal files and directories. "Normal" files include programs, text, imanges, etc. Directories are files which can contain other files, including other directories. Their use is for organising files. If you are familiar with Microsoft Windows, a directory on UNIX/Linux is the same thing as a "folder" in Windows terminology.

When you open a terminals, your initial position in filesystem is your home directory.

Try to type pwd and press enter. (pwd -- Print Working Directory)
The output of pwd is the pathname of your current directory. e.g. /home/sinx
as you can see, the directory names are separated by forward slash, /. This is different from MS-DOS which uses the backslash, "\". The root directory is "/". All files and directories in the filesystem are located underneath the root directory. That's why all full pathnames will start with "/".

You can list the files in your current directory using the ls (list) command. there are some opthins you may specify for ls command:
-l (LONG listing-show all file details)
-a (ALL files, including files starting with "." that are normally hidden)
-t (Sort by TIME last modified)
-R (RECURSIVE listing -show contents of subdirectoryes as well)

After this, I think you will understand the filesystem is hierarchically structured.

Next step is to know how to navigating the Filesystem. I will post something about that later.

Comment/Reply (w/o sign-up)

the empty calorie
I myself use ksh... but commonly, most of the shell depends on what you're trying to do. Here are the commands I can list off the top of my head, I hope it helps.

ls = list files in current directory
cd = change directory
mkdir = make new directory
rm = remove
mv = move, but can also be used as a tool to rename files
chmod = change permissions on a file
locate = used to find files

Now, when you're referring to files, say, you want to execute a file in the current directory, you must type ./ and then the filename to let it know you want the current directory...

if you're using the cd command, to go to the directory above, use "cd .."

you might want to search google for a list of unix commands, but this will get you started.

Comment/Reply (w/o sign-up)

jedipi
Thanks the empty calorie,
You just post what i want to say, navigating the Filesystem.

By now, you should be able to move any directory that you want to work in.
This is the first thing that should know.

Now I am going to talk about Copying, moving, renaming and deleting files.

Linux/UNIX provides the cp command to copy files.
When you copy a file you can name the copy anything you like,
but using names which only include alphanumeric characters a-z, A-Z, 0-9is safer.
cp also has options which allow you to copy groups of files and whole directories easily. Please check with man command.

Moving and renaming files is done with mv command.
mv is used to move one or more files between directoried or to rename a file. using mv command to move a file to the same directory with different name is know as renaming the file.
rm , short for "remove", deletes files.

Here are an examples, assume that there are two file, filea and fileb, in /pub directory.

CODE

cd                              (change to your home directory)
cp /pub/filea ~/filea           (copy filea form /pub to your home directory)
cp /pub/fileb ~/fileb           (copy fileb form /pub to your home directory)
ls                              (list files in your home directory)
mkdir blah                      (create a directory blah in your home directory)
mv filea blah                   (move filea to directory blah)
ls                               (list files in your home directory)
cd blah                          (change to blah directory)
ls                               (list files in blah directory)
cd ..                           (change to upper directory, your home directory)
mv fileb filec                  (rename fileb to filec)
ls                               (list files in your home directory)
rm filec                       (delet filec)

Comment/Reply (w/o sign-up)

wutske
I started with this great guide: http://linux.about.com/od/embedded/l/blnewbie_toc.htm

I started with it, but unfortunately never ended because of a lack of time sad.gif . This will learn you how to administrate your linux pc. It might be that not every tool works because it's not installed, but don't worry too much about it (yet).

Comment/Reply (w/o sign-up)

jedipi
Veiwing file in Terminal
You can use two utilites for viewing text files on the screen: cat and more

cat is used for viewing short files (less than one page), and more is used for wiewing longer, multi-0page files.
cat merely writes the file to the screen and then exites.
more provides a simple interface to move backwards and forwards through a file.
"f" or "Space" key to move a page forward,
"Enter" key to move a line forward,
"b" to move a page back and
"q" to quit.
if you want to just look at the beginneing or end of the file you can use the
head and tail commands.

Actually there is a third utility for viewing files, called less
less is better than more. In fact, less is an improved version of the more program that allows more flexible scrolling and searching within the file.
Too see how it works, run less words (assum there is a text file named words),
Then press the "h" key for help. more is a good starting point for viewing files, but many expert user prefer less

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Beginner Linux Terminals Linux Terminals

  1. How To Copy File & Folders From Linux To Windows?. - (14)
    Many face problem while transfering file from Linux to windows and Vise versa. My solution for
    this is "winscp405". Winscp is a windows freeware tool used to copy file from & to Linux machine.
    To get this tool just google for " winscp405" tool and download this small package and install.
    Enjoy working with Linux and windows /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />...
  2. Three Ways To Access Linux Partitions From Windows On Dual-boot Systems - (11)
    If you have a dual-boot Windows/Linux system, you probably know this problem: you can access files
    from your Windows installation while you are in Linux, but not the other way round. This tutorial
    shows three ways how you can access your Linux partitions (with ext2 or ext3 filesystem) from within
    Windows: http://www.howtoforge.com/access-linux-par...ns-from-windows
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ...
  3. Lightest Linux - (15)
  4. Running Linux on slow computers - (17)
    I'm wondering if Mandrake 9.2 with X can be used on slow machine like: Pentium 350, 64mb ram,
    2mb graphic card. I don't want to install any servers (ssh maybe)....
  5. I Want To Get Linux, Which One Is Best? - (20)
    currently have Windows XP (god help me) and want to change to Linux. I know that Linux is
    open-source, but does that mean that it is free? I have no idea on the matter so I decided to
    consult the forums. ...
  6. Choice Of Motherboard For Linux Virtualization - Who knows which ones work well? (6)
    Virtualization is a relatively arcane subject, but it is one which is very rapidly growing, and
    apparently very "hot" in commercial enterprises. For the hobbyist with multiple computers (I have
    8), it offers the possibility of taking snapshots of running, fully configured applications and
    operating systems, and transferring some or all of them onto a single computer platform. First, it
    saves energy. Second, once the conversion has been made from real hardware to a virtual "guest,"
    the driver problems associated with moving from one hardware platform to another are sol...
  7. What's The Difference Between Linux And Unix?!? - (23)
    are they even made by the same people...?...
  8. What Made You Switch To Linux? - (65)
    I first tried Linux a few years ago, not because I was completely against Windows or anything like
    that, but just because I had some free time on my hands. I started off with Mandrake 9.0 which was
    very user friendly and Windows-like. After reading through a bunch of message boards and learning
    which distros are good for what, I soon realized my current distro was great for Linux noobs. So
    then I decided to try something a little more advanced like Slackware which I knew had a steep
    learning curve. Since then I've been using Slackware as my main OS and couldn'...
  9. Diablo 2 In Linux? - possible or not? (11)
    Hey! Sorry if this should be in the game forum, but it is about a game in Linux. And I need help
    with it /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> so I
    thougt that it belongs to here. So.. Is it possible to install Diablo 2 on Linux using some sort of
    patch, or any special software? Not just diablo. But other games too, that only works on Windows.
    Thanks //Feelay...
  10. Binds ( Dns Server For Linux ) - How To Use It ? - (3)
    I have BINDS installed on my Linux box and was wondering how you use it. For the fact that it is a
    DNS server, that is all I know. Otherwise, I'm lost! Thanks! F...
  11. Where To Find Notepad++ For Linux ? - (38)
    I'm searching 2 days ago trying to find notepad++ for linux but i couldn't find it yet,
    does anyone know or have this great software?, ofcourse i have it on windows, but i don't use
    windows so much time, most times i'm on linux so i need it to be run on linux. P.S: i don't
    use WINE so please don't recommend it /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> ...
  12. Psybnc - Howto - How to make a psyBNC on Linux (5)
    Installation First, fetch the latest source code from http://www.psybnc.at QUOTE cd wget
    http://www.psybnc.at/download/beta/psyBNC-2.3.2-7.tar.gz tar -zxvf psyBNC-2.3.2-7.tar.gz cd psybnc
    Configuration QUOTE make menuconfig Now go in `Bouncer Config', next set Listening
    Port and Ip. Next select `User' Here you will be able to create a user for your bouncer. You
    must set Ident, Realname and Password, and vhost too. So return to main menu, and choose exit. When
    prompted for saving select Yes. Launching psyBNC QUOTE make ./psybnc ...
  13. Linux - which distributiuon? - (21)
    I'm wondering what distributions of Linux do you like most. Please make some comments on
    distribution you like so everybody will know its adventagies....
  14. Linux For Beginners- Easy To Install - (16)
    Which Linux distru is for beginners and Easy to install?...
  15. When And What Is Your First Linux Experience? - (4)
    Hi All, I want to learn when and what is your first experience of linux? Mine is; 1996 first
    install of linux. 1995 first time I heard of linux. I remember how I was happy and how I was curious
    about linux. I was bored of Windows. It was not the OS I was dreaming of. It was not completely
    flexible. I was feeling that windows is not the edge of the computer tech. There are something wrong
    about windows. And Linux was like a dream for me.. I remember how I tried to get a linux distro. I
    remember how I installed it.. How excited I was. It was incredible.. The linux I ins...
  16. Now Linux is ease - The linux SuSE 9.1 is most ease linux (9)
    /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> if you desire
    to do your linux most ease, I recommend yourself to change you to SuSE 9.1 and your life to be ease.
    These linux make all to you. you don't need to make nothing. /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />...
  17. Linux Software Installation Help - it tells how to install software in tar.bz2 or .bin extension (2)
    installing .tar.bz2 software open the terminal window.Place the s/w in root's home..then
    write file.tar.bz2 in terminal. uncompressing will take place.a folder with .tar extension will b
    created.Now write tar -xvf filename.tar,contents will be read..Now,move to the directory just
    created..read the readme file..follow instruction such as make or make install to be commanded in
    terminal...now its done..use it by writing in terminal for ex. mplayer movie.avi. ..or just drop ur
    movie file nin the terminla..nd remove the " " in the file..append mplayer with blank spa...
  18. Linux SuSE detec you all hareware - Yea SuSE detec all. (2)
    Yea SuSE heve the best tools. Mplayer, Xmms, OpenOfecce, K3B, FireFox etc....
  19. How To Play Music And Movie In Linux? Which Is The Good One?. - (6)
    How to play Movie and music on linux. I am using fedora and i dont think so any player is specific
    to any one flavour of linux. I have used "MP3 blaster" player, but this you need to play from
    command line. Any other user friendly player pls let me know /rolleyes.gif"
    style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> .....
  20. Which Linux Version For Newbies? - Give your opinion (14)
    Hi, well i have been a windows user all my life, and I'm really satisfied with it. But from a
    time know as a good programmer/user, I want to know what I'm missing(or not) from not using
    linux, so for those who have a long time using it I would like you to ask a favor, if you could
    recommend me the version that I should test. I don't understand when someone says to a newbie in
    linux that is asking for a version to start, they say to them "well ubuntu(example) is a good
    version to start", what are the real diference between the different types of linux. ...
  21. Why Linux? - (23)
    i have always wonder, what is so special about linux? why do people have linux? rather than windows
    or mac? is it recommended that noobs like me /laugh.gif" style="vertical-align:middle"
    emoid=":lol:" border="0" alt="laugh.gif" /> have an linux os? /rolleyes.gif"
    style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />...
  22. What Language Is Linux Written In ? - (15)
    I''ve been wondering lately, what language is Linux written in? I'm interested in
    this, because my friend and I are considering writing our own distro. I know, it sounds like a bit
    of a feat, but one guy wrote MEPIS by playing with the Debian source code. I think the two of us
    could do something similar. /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif'
    /> ...
  23. Looking For Linux - 2 choices that I will choose - make it easy to install and MAINTAIN (34)
    Ok I have tried Linux before, it was ok, until something with the kernel screwed up and it left me
    with a command line interface that I didn't know what to do. I am looking for 2 different
    distributions of Linux here, my first one is for: (Currently running Windows XP SP2) A computer
    with 512 MB RAM Pentium 4 processor Internet Access GNOME or KDE desktop, doesn't matter Minimal
    command line work!!! Absolutely no command line work when installing. I have tried Ubuntu, it was
    easy enough. Anything easier than Ubuntu and I'll give it a try. My second cho...
  24. Linux Basic Command - For Storing Compilation Error To File - (1)
    Ex: Compiling a cpp file using a basic command " g++ filename.cpp " and to run the program use
    ./a.out , Then to store the compilation error to text file use this command. g++ test.cpp >
    log.txt log.txt contains the compile time errors. ...
  25. Access Linux Box From Windows Machine- Putty Tool - (2)
    Most of the guys want to access Linux box from Windows machine just to do some programming on the
    command line. The "Putty Tool" is the solution for this. Just google for "Putty" and download this
    small package(less then 1MB) and keep it on your desktop. Just you need to configure the linux
    machine IP on this Putty tool and connect to Linux machine. If you face any problem in configuring
    Linux IP, then let me know, i will help you out. If you think this is help full, please rate this....
  26. Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One. - (0)
    Let me give some usefull linux commands and utilities. Please add to this list if you know.
    Work with tar files. To make tar archive use $ tar -cvf filename.tar filename
    To extract tar archive use $ tar -xvf filename.tar To extract tar archive
    with gz use $ tar -xzvf filename.tar.gz Connect to remote system through ssh
    $ ssh name@ip followed by passwd e.g. ssh project@172.16.0.14 passwd: List the
    file in current directory $ ls -l list the running process ...
  27. How To Install Linux Without A CD or DVD? - Would like to learn how to use Linux but don't know how to install (11)
    Hey! I've tryed to install linux without a cd (as they said on the website).. But I did'nt
    understand it so good =/ Can anyone please tell me how I can install linux without a CD? Any
    version.. The only thing I need is a fast one (faster than windows).. I am completly new (never
    tried it before) and would want to learn Linux. But thats not easy, if I don't know hoiw to
    install it /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Thanks
    //Feelay...
  28. You can Play now in Linux - These is a list of the games. (26)
    You can Play a greates gameg in linus as: Unreal Tournament Quake 3 Wolfenstein Enemy teritory Medal
    of Honor And Emule Nintendo 64 and Play Station games. He have your property games as: Tux Raser
    Tux Cart Flith of the amazon queen Beneath a Steel Sky and most more....
  29. So, I Want To Try Out Linux. - What do I need? (9)
    If I want to use Linux, would I need XP or a OS on a LAPTOP already? Or can I just pure boot Linux?
    I've wanted to use Linux for a while, preferably Ubuntu. Unless those are two completely
    different things. /dry.gif" style="vertical-align:middle" emoid=" I don't know, I have never
    used Linux before. /tongue.gif" style="vertical-align:middle" emoid=":P" border="0"
    alt="tongue.gif" /> So, any help?...
  30. Linux? - (3)
    What is the pros and cons of linux? Does it cost money to get or is it free?...



Looking for beginner, learn, linux, terminals, linux, terminals

See Also,

*SIMILAR VIDEOS*
Searching Video's for beginner, learn, linux, terminals, linux, terminals
How To Copy
File &
Folders From
Linux To
Windows?.
Three Ways
To Access
Linux
Partitions
From Windows
On Dual-boot
Systems
Lightest
Linux
Running
Linux on
slow
computers
I Want To
Get Linux,
Which One Is
Best?
Choice Of
Motherboard
For Linux
Virtualizati
on Who knows
which ones
work well?
What's
The
Difference
Between
Linux And
Unix?!?
What Made
You Switch
To Linux?
Diablo 2 In
Linux?
possible or
not?
Binds ( Dns
Server For
Linux ) -
How To Use
It ?
Where To
Find
Notepad++
For Linux ?
Psybnc -
Howto How to
make a
psyBNC on
Linux
Linux -
which
distributiuo
n?
Linux For
Beginners-
Easy To
Install
When And
What Is Your
First Linux
Experience?
Now Linux is
ease The
linux SuSE
9.1 is most
ease linux
Linux
Software
Installation
Help it
tells how to
install
software in
tar.bz2 or
.bin
extension
Linux SuSE
detec you
all hareware
Yea SuSE
detec all.
How To Play
Music And
Movie In
Linux? Which
Is The Good
One?.
Which Linux
Version For
Newbies?
Give your
opinion
Why Linux?
What
Language Is
Linux
Written In ?
Looking For
Linux 2
choices that
I will
choose -
make it easy
to install
and MAINTAIN
Linux Basic
Command -
For Storing
Compilation
Error To
File
Access Linux
Box From
Windows
Machine-
Putty Tool
Some Usefull
Linux Basic
Commands And
Utilities.
Please Add
To This List
If You Know
One.
How To
Install
Linux
Without A CD
or DVD?
Would like
to learn how
to use Linux
but
don't
know how to
install
You can Play
now in Linux
These is a
list of the
games.
So, I Want
To Try Out
Linux. What
do I need?
Linux?
advertisement



Help A Beginner To Learn To Use Linux Terminals - Help linux terminals

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com