Click to See Complete Forum and Search --> : Command Line For Dummies
endor
03-24-2006, 05:13 PM
Can someone please recommend a good place for Linux noobs to find answers to simple Linux command line questions.
For example I have to type /usr/games/bin/netris to play netris. How do I make it so that I can just type netris from any directory to run the program.
I tend to have a lot of beginner's questions like this and I don't want to waste people's time by asking it in the wrong thread.
Noobily Yours,
Endor
Choozo
03-24-2006, 05:32 PM
Two ways (at least) to solve the 'netris game' issue.
1. Add '/usr/games/bin' to your $PATH environment variable in e.g. ~/.bash_profile like this:
PATH=$PATH:/usr/games/bin
export PATH
2. Add a symlink in /usr/bin pointing to /usr/games/bin/netris (using the command line), like this:
[you@your box ~] # ln -s /usr/games/bin/netris /usr/bin/netris
Option 2 would be the preferable one since /usr/bin should already be in your $PATH. Going for option 1, and doing the same for all other future cases, would just clog up your $PATH variable.
The RUTE online guide/manual is an excellent source: http://www.chongluo.com/books/rute/
voidinit
03-25-2006, 01:57 AM
www.tldp.org The linux documentation project.
Take a look at the linux users guide first, then browse through the linux administrators guide. Follow up with a healthy dose of the advanced bash scripting guide. You don't need to read the whole things, or know/understand everything they covered. You just need to see which topics are covered in which book and you can always look back later when you think, "I remember reading about this somewhere...oh, yeah! It was in the user guide."
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.