LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2004, 01:52 PM   #1
Coopa
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
Command line, etc.


I've tried a few times to get Linux working on this box, as a dual boot with XP pro, and finally i've managed with Mandrake 10. It's the very first time i've managed to partition, install, run...and quite literally everything has worked off the mark. I've had major probs with my onboard LAN before, but that's worked...with no fuss!

Anyway, way back when I started on computers I was a DOS user, then onto Win 3.x, so now i'm onto Mandrake and at the moment i'm using KDE and now and then i've dropped into Gnome too. I prefer the look and 'feel' of KDE though I can't say i'm a big fan of the speed. I know there are other window managers out there but i want to get a feel for the command line stuff first.

What would people recommend for getting used to command line linux? That is, using the terminal window more? At the moment I try to untar things, copy things here and there using it but so far i'm having trouble remembering all the different commands (kinda like when i started on DOS all those moons ago). What kind of commands are the most 'useful' and regular? Literally all i can usually remember is 'ls' and 'cd'. I know that it's 'tar' to untar a .tar, then there's the .tar.gz (tarball?) and i've been told by my bro that tar -xgvf is what to use.

I'll leave it at that right now but i may have more afterwards!
 
Old 08-02-2004, 01:54 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Code:
mv <oldname> <newname>
Will rename the file oldname to the file newname. It will also move the file if you specify a path.
Code:
man <command>
Will display the man page for a program. This is an important one - just reading the man file for programs can stop you asking stupid questions on this site
 
Old 08-02-2004, 02:00 PM   #3
Coopa
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Komakino
Code:
man <command>
Hehe, luckily i know this one already, though i'll admit it wasn't until i had a look on here yesterday i found out how to exit the man pages.
 
Old 08-02-2004, 02:05 PM   #4
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
i have written a document that covers common commands in linux.
you can obtain that document at the following location:

Computer Experts, Inc. Website

Scroll down to CUSTOMER TOOLS & RESOURCES which is displayed on the right, and enter:

username: customer
password: customer

Click on the folder icon "ARTICLES", then the fourth link down labeled:

Common Commands in Linux_rev1.doc

download that file. it contains common commands and their function. it also coveres mounting/unmounting devices. the file was written using OpenOffice and has been saved in w0rd format, but can also be read using OpenOffice.

hope i could help!!!!!!!!




Last edited by Tinkster; 08-02-2004 at 07:48 PM.
 
Old 08-02-2004, 02:16 PM   #5
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Code:
apropos (text)
is a useful one; it returns all the man-pages containing (text).
 
Old 08-02-2004, 06:38 PM   #6
Coopa
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by linuxlastslonge

Computer Experts, Inc. Website

[/B]
That file was pretty good, i'll print it out and have a good read.

Thanx for the rest too.

Last edited by Tinkster; 08-02-2004 at 07:48 PM.
 
Old 08-02-2004, 07:21 PM   #7
tazxxx
LQ Newbie
 
Registered: Sep 2003
Location: england
Distribution: Mandrake 10
Posts: 14

Rep: Reputation: 0
http://www.tuxfiles.org/linuxhelp/cli.html was a pretty big help to me when i first needed to use the command line, still is when i forget something.
 
Old 08-02-2004, 07:45 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by linuxlastslonge
i have written a document that covers common commands in linux.
you can obtain that document at the following location:

Computer Experts, Inc. Website

Scroll down to CUSTOMER TOOLS & RESOURCES which is displayed on the right, and enter:

username: customer
password: customer

Click on the folder icon "ARTICLES", then the fourth link down labeled:

Common Commands in Linux_rev1.doc

download that file. it contains common commands and their function. it also coveres mounting/unmounting devices. the file was written using OpenOffice and has been saved in w0rd format, but can also be read using OpenOffice.

hope i could help!!!!!!!!

http://www.linuxquestions.org/questi...?action=adinfo


If you want to advertise your website, please have a look
at that link ...


Cheers,
Tink
 
Old 08-03-2004, 04:22 AM   #9
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
linuxlastslonge

How would you feel about offering your document to our LQ Wiki as a resource for visitors?
We use a Creative Commons Licence for material on the wiki site..

It's nice to see well written material..
 
Old 08-03-2004, 05:26 AM   #10
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
You can do wonders with awk, sed, find, xargs, and bash builtins and substitutions. See man pages.

Yves.
 
Old 08-03-2004, 10:44 AM   #11
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
My experience began as did yours: DOS and win 3.x. When I took the plunge into Linux, I found a tutorial called 'Newbie's Linux Manual', which contains excellent examples of how to use some of the more common Linux commands, as well as some of the more common applications, such as rpm. From there, is was read, read, and read a bit more.
To get into the habit of command-line, safely:
A. Never login as root unless you ablosutely have to. Root has ultimate authority and can kill the system. Login as user; your authority to do damage is limited to your home directory.
B. Always cd to the directory in which you want to do some work. If you give the dreaded 'rm *', you only damage that directory; not the entire system.
C. It would be a good idea, no matter where you are in the directory tree, to give the full path to files in your commands as additional insurance against inadvertant destruction of your system.
D. When editing text files, use text editors such as vi, vim, emacs, etc. It increases use of the keyboard, and commands associated with command-line operations.

Beyond that, google up Linux command lists.
 
Old 08-03-2004, 12:42 PM   #12
Coopa
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the info people, very useful indeed.

A few more questions have popped to mind now...

1. What's the easiest way to update gaim? So far i'm finding gaim the best messnger client as i mainly use MSN and sometimes Yahoo; and the plugins for Gaim are pretty good. But if anyone suggests others that are worth looking at i'll have a try. I know of kopete and amsn (i had a few probs with amsn before)

2. Anyone recommend a reliable (that is, easy to use :P) IRC client? I've downloaded IIRC but had a few problems with it.

3. A while back my dad gave me a Microsoft multimedia keyboard, and as mine was dying at the time i took it off his hands. Now, in XP i just edit the registry to stop this damn f-lock key, i've tried googling but can't find anything to help with this problem in linux (mandrake). Any ideas?

edit: I seem to be 'missing' the command urpmi? Is this possible?
Sorry, i'll give a better description of what i mean by missing. In a terminal window if i type say
Code:
ur [tab]
then it comes up with...

Code:
urpmf                  urpmi_rpm-find-leaves  urpmq
No urpmi? And i can't say i'm too sure what the others are. I've googled and looked at the man page, and so far i get that urpmf is for finding the package, but how about the other command?

Last edited by Coopa; 08-03-2004 at 01:05 PM.
 
Old 08-03-2004, 01:43 PM   #13
tazxxx
LQ Newbie
 
Registered: Sep 2003
Location: england
Distribution: Mandrake 10
Posts: 14

Rep: Reputation: 0
Try doing the same while logged in as root.
 
Old 08-03-2004, 02:18 PM   #14
Coopa
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by tazxxx
Try doing the same while logged in as root.
hehe, boy is my face red. Nice one.
 
Old 08-04-2004, 03:53 AM   #15
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Multimedia keyboard: I don't know of any program to change de default status of the f-lock key. Same with my Logitech keyboard: default is to use MM functions whereas I'd like the default to be the Fxx keys...

I think the easiest solution is to make your own keyboard mapping, by swapping the MM symbols and the Fxx symbols; eg: when you'll press F5, apps will get Play (for example), and when you press Play (same key actually), apps will get F5.

See my home site if that helps: http://www.gablin.fr.fm/

Yves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 01:28 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration