LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-18-2002, 12:37 PM   #1
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
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?
 
Old 04-18-2002, 01:09 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 04-19-2002, 08:24 AM   #3
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Original Poster
Rep: Reputation: 33
So how do you know when a command is a command and not just
part of a command?
 
Old 04-19-2002, 09:11 AM   #4
abrakadabra
Member
 
Registered: Apr 2002
Location: Denver
Distribution: SuSe,RedHat,Mandrake,
Posts: 109

Rep: Reputation: 16
Lightbulb

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!

 
Old 04-19-2002, 10:47 AM   #5
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Original Poster
Rep: Reputation: 33
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.
 
Old 04-19-2002, 12:07 PM   #6
abrakadabra
Member
 
Registered: Apr 2002
Location: Denver
Distribution: SuSe,RedHat,Mandrake,
Posts: 109

Rep: Reputation: 16
Post

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.

 
Old 04-19-2002, 12:37 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 04-19-2002, 01:00 PM   #8
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
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.
 
Old 04-19-2002, 11:10 PM   #9
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
There's a pretty decent help file on commands here

Last edited by Psycho; 04-19-2002 at 11:56 PM.
 
Old 04-20-2002, 12:06 AM   #10
lejakl
LQ Newbie
 
Registered: Apr 2002
Location: Southern CA
Distribution: RH 9.0
Posts: 22

Rep: Reputation: 15
oh hey! a question
text-mode (command line..) gets kinda colorful. different colors for dirs and executables etc.
where can you change it?
 
  


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
Very confused unkn0wnhacka Linux - General 12 07-20-2005 09:44 AM
Please help, I'm so confused sdat1333 SUSE / openSUSE 4 12-11-2004 09:23 PM
confused FrozenPenquin Linux - Newbie 26 12-09-2003 09:27 AM
C++ and very confused james.farrow Programming 5 11-28-2003 01:58 PM
so confused... KeTrueno Linux - General 1 09-28-2003 01:45 PM

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

All times are GMT -5. The time now is 04:17 AM.

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