Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Help A Beginner To Learn To Use Linux Terminals, Help linux terminals
sinx
post Oct 24 2005, 11:12 AM
Post #1


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 6
Joined: 24-October 05
Member No.: 9,270



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

This post has been edited by microscopic^earthling: Oct 24 2005, 11:36 AM
Go to the top of the page
 
+Quote Post
qwijibow
post Oct 24 2005, 11:55 AM
Post #2


Way Out Of Control - You need a life :)
Group Icon

Group: Members
Posts: 1,366
Joined: 14-September 04
From: Nottingham England
Member No.: 570



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.

Go to the top of the page
 
+Quote Post
Jeigh
post Oct 25 2005, 02:01 AM
Post #3


Whitest Black Mage
Group Icon

Group: [MODERATOR]
Posts: 1,371
Joined: 20-May 05
From: NB, Canada
Member No.: 5,281
myCENTs:65.99



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
Go to the top of the page
 
+Quote Post
hatim
post Oct 25 2005, 08:13 PM
Post #4


Advanced Member
Group Icon

Group: Members
Posts: 196
Joined: 17-June 05
From: Topi,Swabi,NWFP,Pakistan
Member No.: 6,301



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
Go to the top of the page
 
+Quote Post
yordan
post Oct 25 2005, 10:26 PM
Post #5


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 2,193
Joined: 16-August 05
Member No.: 7,896
myCENTs:54.04



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.
Go to the top of the page
 
+Quote Post
jedipi
post Oct 26 2005, 01:04 AM
Post #6


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



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.
Go to the top of the page
 
+Quote Post
the empty calori...
post Oct 26 2005, 04:39 AM
Post #7


Premium Member
Group Icon

Group: Members
Posts: 254
Joined: 28-December 04
Member No.: 1,884



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.
Go to the top of the page
 
+Quote Post
jedipi
post Oct 26 2005, 12:00 PM
Post #8


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



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)
Go to the top of the page
 
+Quote Post
wutske
post Oct 26 2005, 05:42 PM
Post #9


Way Out Of Control - You need a life :)
Group Icon

Group: [HOSTED]
Posts: 1,077
Joined: 2-August 05
From: Kapellen (Antwerp, Belgium)
Member No.: 7,585



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).
Go to the top of the page
 
+Quote Post
jedipi
post Nov 4 2005, 11:44 AM
Post #10


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Now Linux is ease(9)
  2. Linux SuSE detec you all hareware(2)
  3. You can Play now in Linux(26)
  4. What's The Difference Between Linux And Unix?!?(17)
  5. What Language Is Linux Written In ?(15)
  6. Where To Find Notepad++ For Linux ?(37)
  7. What Made You Switch To Linux?(61)
  8. Psybnc - Howto(4)
  9. Looking For Linux(34)
  10. Virtualization In Linux: A Review Of Four Software Choices(4)
  11. How To Install Linux Without A CD or DVD?(11)
  12. What Softwares Should I Get To Linux?(6)
  13. Diablo 2 In Linux?(10)
  14. Linux?(3)
  15. What Is Linux(2)
  1. So, I Want To Try Out Linux.(9)
  2. How To Play Music And Movie In Linux? Which Is The Good One?.(6)
  3. Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One.(0)
  4. How To Copy File & Folders From Linux To Windows?.(12)
  5. Access Linux Box From Windows Machine- Putty Tool(2)
  6. Linux For Beginners- Easy To Install(16)
  7. Linux Basic Command - For Storing Compilation Error To File(1)
  8. Choice Of Motherboard For Linux Virtualization(5)
  9. Why Linux?(23)
  10. Which Linux Version For Newbies?(14)
  11. Linux Software Installation Help(2)
  12. I Want To Get Linux, Which One Is Best?(6)
  13. When And What Is Your First Linux Experience?(4)


 



- Lo-Fi Version Time is now: 23rd November 2008 - 06:38 PM