Click to See Complete Forum and Search --> : Need help with command line
I have no idea what commands for linux are. I don't know how to install stuff delete etc off of the linux box.
I'm running redhat 9 and going to set it as my default gateway on the network I'll be setting up at home. in my room :D Going to possibly get another computer and run it as a test box since I don't want to screw up my router(linux redhat 9 box). well what I want to know are commands for things. how to install. what directory you need to be in in able to run the
./network restart command.
I know how to mount cd's though so that's no problem just in the dark about everything else.
mount /mnt/cdrom
unmount /mnt/cdrom
mount /mnt/floppy
unmount /mnt/floppy
then to read the contents on the disk just go to
cd /mnt/cdrom
then dir
not really that confuseing for that.
whats mkdir for? make directory I take it.
also how do you install something off a disk or off the web.
I'm sorry I'm horribly new at this but why not start now into the great world of linux. Being 16 and facinated with computers can take ya to some smoke filled, cuts from cases, and many more places :D
rpm -i is as fal as I know of how i did it once in my cisco class.
[H]ardForum thread of my network project log.
http://www.hardforum.com/showthread.php?threadid=701738
rbrimhall
01-07-2004, 09:03 PM
rpm -ivh installs with verbose hash marks
rpm -Uvh upgrades with verboise hash marks
rpm -e uninstalls an rpm
rpm -ivh --justdb installs only the package database and not the actual package (good for handling dependencies that you may not actually need)
cd (change dir)
cd ~/ (change to your home dir)
cd ../ (up one dir)
cd ../../ (up two dir)
ls (lists files in a dir)
ls -a (lists all files in a dir including hidden ones)
pwd (prints the current dir)
date (gives the time and date)
rm (removes a file)
rm -r (removes a dir recursively--be careful!!)
there are tons more that's just a few I use alot
questionasker
01-07-2004, 09:04 PM
mkdir yes make directory.
w/ RH9, or any red hat, you can use RPMs (redhat package management) to install. they should be availible for most all apps you need.
progs like synaptic, kpackage, etc make installing a breeze.
if not, you can compile from source.
kinda tricky, but not bad once youre used to it.
install from web: see above. depends if you use rpm or source.
from disk: i assume you mean the RH9 disks? is so, they install like regular rpms.
good luck. have fun.
questionasker
01-07-2004, 09:10 PM
whereis () -- finds specified filename
find () -- same as above
http://www.martian-tech.com/commands.html
this page lists a few.
http://www.allcommands.org/index.php3?page=http%3A//www.allcommands.org/linux%2520commands%2520list.html
so does this one.
Gertrude
01-07-2004, 09:21 PM
what directory you need to be in in able to run the
./network restart command.
/etc/init.d/network restart
Originally posted by lupin_the_3rd
rpm -ivh installs with verbose hash marks
rpm -Uvh upgrades with verboise hash marks
rpm -e uninstalls an rpm
rpm -ivh --justdb installs only the package database and not the actual package (good for handling dependencies that you may not actually need)
cd (change dir)
cd ~/ (change to your home dir)
cd ../ (up one dir)
cd ../../ (up two dir)
ls (lists files in a dir)
ls -a (lists all files in a dir including hidden ones)
pwd (prints the current dir)
date (gives the time and date)
rm (removes a file)
rm -r (removes a dir recursively--be careful!!)
there are tons more that's just a few I use alot
nice thanks those will help out.
Originally posted by questionasker
mkdir yes make directory. w/ RH9, or any red hat, you can use RPMs (redhat package management) to install. they should be availible for most all apps you need. progs like synaptic, kpackage, etc make installing a breeze. if not, you can compile from source. kinda tricky, but not bad once youre used to it. install from web: see above. depends if you use rpm or source. from disk: i assume you mean the RH9 disks? is so, they install like regular rpms. good luck. have fun.
haha ya it's tending to be a problem with trying to install fluxbox. bah
Originally posted by questionasker
whereis () -- finds specified filename find () -- same as above http://www.martian-tech.com/commands.html this page lists a few. http://www.allcommands.org/index.ph...s%2520list.html so does this one
alright thanks.
Thank's for all the help everyone. More is welcome though ;) lil donting to go to a 100% linux box after usen windows since 98 :rolleyes:
Originally posted by Gertrude
/etc/init.d/network restart
alright thanks that's what I thought it was had to do something with init.d
hardcore
01-07-2004, 09:29 PM
one command you'll really want to learn how to use:
man command
It gives a manual for the command you're looking up.
Also its sometimes useful to use the --help flag.
For example:
ls --help
will display all the flags you can use with ls.
Also get used to searching for stuff you need, try using www.google.com/linux and the forums here for help.
Anyways welcome to linux.
hardcore
01-07-2004, 09:30 PM
and actually if you just type:
cd
by itself, you'll go back to your home directory.
Originally posted by hardcore
one command you'll really want to learn how to use:
man command
It gives a manual for the command you're looking up.
Also its sometimes useful to use the --help flag.
For example:
ls --help
will display all the flags you can use with ls.
Also get used to searching for stuff you need, try using www.google.com/linux and the forums here for help.
Anyways welcome to linux.
again thanks for the help everyone.
going to be sometime before I get use to linux but well worth it.
X_console
01-07-2004, 09:52 PM
My recommendation would be to purchase a Linux book. Everything you need to know will be there.
bwkaz
01-07-2004, 10:51 PM
(Psst! "How I Did It" isn't "How Do I Do It?" ;))
My suggestion -- just use it for a while. Immerse yourself by not booting your Windows partition (if you even have one). With a bit of reference material, it'll all eventually start to make sense.
Or at least, it did for me... that may not be the best advice after all, come to think of it. You might get way too fed up with the OS... hmm. Maybe if you know when to back off and take a breather, that would help.
Originally posted by X_console
My recommendation would be to purchase a Linux book. Everything you need to know will be there.
any recommendations?
Originally posted by bwkaz
(Psst! "How I Did It" isn't "How Do I Do It?" ;))
My suggestion -- just use it for a while. Immerse yourself by not booting your Windows partition (if you even have one). With a bit of reference material, it'll all eventually start to make sense.
Or at least, it did for me... that may not be the best advice after all, come to think of it. You might get way too fed up with the OS... hmm. Maybe if you know when to back off and take a breather, that would help.
ya I'm learnen a lil as the days go by. I run a counter-strike server on a redhat 9.0 box but I had a lot of help from my teacher for setting it up. I edited it and configed it myself though so haha. I'm not fully retarded. ;)
ZenelithCalling
01-08-2004, 12:15 AM
I've found this online book to be pretty helpful
rute (http://wwwacs.gantep.edu.tr/linux/rute/)
Originally posted by ZenelithCalling
I've found this online book to be pretty helpful
rute (http://wwwacs.gantep.edu.tr/linux/rute/)
thank-you this online referense is going to help out a lot :D
Gertrude
01-08-2004, 01:11 AM
Originally posted by hardcore
and actually if you just type:
cd
by itself, you'll go back to your home directory.
Thats a god one... And here I have been typing cd ~/ all the time.
hardcore
01-08-2004, 02:08 AM
exactly i've saved so much time by not typing those two characters ;)
Originally posted by Gertrude
Thats a god one... And here I have been typing cd ~/ all the time.
haha oh the things we do to save time hey :p
bwkaz
01-08-2004, 08:36 PM
You know about tab completion, right?
Hitting tab will autocomplete filenames (and if you're completing the first word in a command, then all the files have to be executable in order to be candidates for tab completion).
This has probably saved me tens of thousands of keystrokes (at a guess) over the past couple years. ;)
Originally posted by bwkaz
You know about tab completion, right?
Hitting tab will autocomplete filenames (and if you're completing the first word in a command, then all the files have to be executable in order to be candidates for tab completion).
This has probably saved me tens of thousands of keystrokes (at a guess) over the past couple years. ;)
ya my cisco teacher told me about that one. Lil helpful when ya gotta install a large amount of things ;)
X_console
01-09-2004, 09:11 AM
O'Reilly has a few good ones. Linux in a Nutshell, UNIX Powertools, Running Linux, and Linux Hacks.
Originally posted by X_console
O'Reilly has a few good ones. Linux in a Nutshell, UNIX Powertools, Running Linux, and Linux Hacks.
links/places to buy these books?
downloaded a theme now what?
http://themes.freshmeat.net/projects/liquidglass/?topic_id=934%2C920%2C962
where do I go to install it? how do I install it? what folder or ya do I install it?
bwkaz
01-09-2004, 07:15 PM
Linked off the page you posted a link to (I hit the Fluxbox link at the top, then the "How to install and use themes" article link at the top of that page -- yes, it was pretty random, but it worked):
http://themes.freshmeat.net/articles/view/465/
;)
Originally posted by bwkaz
Linked off the page you posted a link to (I hit the Fluxbox link at the top, then the "How to install and use themes" article link at the top of that page -- yes, it was pretty random, but it worked):
http://themes.freshmeat.net/articles/view/465/
;)
haha ya I found that link in there before but wasn't sure exactly what to do from it. Lil confused by all that crap. Not sure where to install the tarball. a.k.a not sure where the theme's are in the root directory. Oh well i'll print it off and show it to my cisco teacher.
X_console
01-11-2004, 01:34 AM
You can get them from any bookstore. As for links, www.amazon.com is one.
keyshawn
01-15-2004, 02:47 PM
Originally posted by myth
links/places to buy these books?
Another good resource not mentioned yet is your local library - I was surprised that mine had quite a few books on linux.
The older books are still revalent for the basics with commands,
you can go with those if you can't find any new ones.
Originally posted by keyshawn
Another good resource not mentioned yet is your local library - I was surprised that mine had quite a few books on linux.
The older books are still revalent for the basics with commands,
you can go with those if you can't find any new ones.
I'll have to look around my library but i'm doubting that mine has anything since they tend not to keep up with things. But i'll take a look. Forgot about the library though lol.
omnipotent goku
01-15-2004, 03:13 PM
I am a relative linux newbie, past the newbie stage, perhaps a novice... but at any rate, ... Is their a killall command that will killall procs by username rather than PID? (pre-installed I mean). I have seen scripts that must be installed, and various 20 odd commands that may achieve this, but comparatively typing in 30 pid's seems more inviting.
hardcore
01-15-2004, 05:47 PM
Straight out of 'man killall':
NAME
killall - kill processes by name
But if you actually meant "username", you can do this with kill as a non-root user:
kill -9 -1 which will kill as many processes as it can.
Doing this as non-root will kill all processes you have control over. Doing this as root *would* be *bad*.
EnigmaOne
01-15-2004, 07:00 PM
Something else you might want to download and print out is the Advanced Bash-Scripting Guide (http://www.tldp.org/guides.html#abs).
Thanatos21
01-17-2004, 03:12 PM
If you want commands, you should just get a book; look into Linux: The Complete Reference. In fact here's a link to amazon:
http://www.amazon.com/exec/obidos/tg/detail/-/0072129409/ref=ase_linuxonlinetheli/103-2613814-2505414?v=glance&s=books
BDembroski
01-18-2004, 06:51 AM
Hi.
As I've been muddling my way through Linux, I've found this site to be really helpful.
http://safari.oreilly.com/
It gives you access to a bunch of books without having to buy them. This lets you tke a few books for a test spin to see how helpful it is. If you find one that is really helpful, then you can buy it.
It's saved me fortune. Well worth the subscription price.
Books on lots of other (non linux) stuff in there too.
HTH.
voidinit
01-18-2004, 06:59 AM
Originally posted by EnigmaOne
Something else you might want to download and print out is the Advanced Bash-Scripting Guide (http://www.tldp.org/guides.html#abs).
Holy Mary Mother of God! I thought I was the only one who recommended this document.
Good stuff inside! It may be dated and old, but it should be requred reading!
rudiz
01-19-2004, 12:36 PM
this is a good book from Marcel Gagne:
Moving to Linux.
GlennaclawZ
01-19-2004, 07:18 PM
I have a question that is kind of close to this topic so I dont have to start another topic...
where can I get rpm?
or do I already have it. I am on mandrake 9.1 if it helps.
thanks,
GlennaclawZ
mdwatts
01-19-2004, 07:25 PM
Originally posted by GlennaclawZ
where can I get rpm?
or do I already have it. I am on mandrake 9.1 if it helps.
Look in your Mandrake installation cd(s), the Mandrake ftp servers (under RPM etc.) or search http://rpmfind.net
First and second are the recommended.
GlennaclawZ
01-19-2004, 07:32 PM
thanks alot man... need that been looking around.