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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-18-2002, 12:37 PM
|
#1
|
Member
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495
Rep:
|
Confused
After reading an article on tomshardware about installing nvidia drivers,
I tried typing in some of the commands he used to see some of the info
about my system. I'm using Mandrake 8.1 and the tomshardware how-to
was a version of SuSE.
I logged into the root console and typed /etc/inittab
Response bash: /etc/inittab: Permission denied
Then I typed /usr/include/linux
Response no such file or directory
Then I typed /usr/src/linux
Response no such file or directory
Is this happening because the commands do different things in different
distros?
The /etc command was supposed to show me a list of initdefault
commands on start up.
The /usr command was supposed to show me the autoconfig.h files.
Any ideas as to why I was denied permission when logged in as root or
why the other commands brought back "no such file" responses?
|
|
|
04-18-2002, 01:09 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
those are directories.. you can't just type /etc
its not a command.
if you want to view files, you can do a
cat /etc/inittab
to browse thru directories you would use the cd command. ls to list the files within the directory.
|
|
|
04-19-2002, 08:24 AM
|
#3
|
Member
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495
Original Poster
Rep:
|
So how do you know when a command is a command and not just
part of a command?
|
|
|
04-19-2002, 09:11 AM
|
#4
|
Member
Registered: Apr 2002
Location: Denver
Distribution: SuSe,RedHat,Mandrake,
Posts: 109
Rep:
|
Hi,
To know when a command is a command, you need to learn them first. I'd try to get a tutorial on basic commands for Linux. There are lots on the Web. If you already know some, say cd, you can type man cd and Linux will display the online man(ual) for that command and the options to use.
Good luck!
|
|
|
04-19-2002, 10:47 AM
|
#5
|
Member
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495
Original Poster
Rep:
|
Hey, I know what cd means. Change directory!
I have looked at some of the mans for unix commands, but they still seem
fragmented to me, so it's hard to put the pieces together.
So, does it have to be man cd, or can it be cd man, too?
Thanks for the tip.
|
|
|
04-19-2002, 12:07 PM
|
#6
|
Member
Registered: Apr 2002
Location: Denver
Distribution: SuSe,RedHat,Mandrake,
Posts: 109
Rep:
|
When you are going to consult the man pages for any command, you must type man first, if you were to type, as you are asking, cd man you are telling Linux to change directory to a directory named man. So, always place man [command] to view man pages.
|
|
|
04-19-2002, 12:37 PM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
they even have a howto on the man pages.. just man man to view it...
but yeah, you have to know a little more about the commands, then it just comes natural to you and you can usually tell what is a command, a file, a script, and executable... and so on.. once you get to know your system.
|
|
|
04-19-2002, 01:00 PM
|
#8
|
Member
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717
Rep:
|
most of the commands are located in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /usr/X11/bin /usr/local/X11/bin(Depending on Distro). Or to find out which directories have commands avalable to you type echo $PATH and the results will show a list of directories where the commands are located. Just cd to one of the directories, do a ls, and if you want to know more about the commands listed, type man <command>.
If you have time I would do man for all the commands just to see what they do.
|
|
|
04-19-2002, 11:10 PM
|
#9
|
Member
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159
Rep:
|
There's a pretty decent help file on commands here
Last edited by Psycho; 04-19-2002 at 11:56 PM.
|
|
|
04-20-2002, 12:06 AM
|
#10
|
LQ Newbie
Registered: Apr 2002
Location: Southern CA
Distribution: RH 9.0
Posts: 22
Rep:
|
oh hey! a question
text-mode (command line..) gets kinda colorful. different colors for dirs and executables etc.
where can you change it?
|
|
|
All times are GMT -5. The time now is 08:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|