LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-26-2005, 05:13 PM   #1
teto
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core
Posts: 6

Rep: Reputation: 0
Terminal problems


I'm a newbie in this area, but i'm tring to learn, I've got tutorials and stuff but my terminal only recognizes a few comands, recently i found out the "man" command and i saw that the commands exists (i thought that i'am a newbie and i don't know how to do it), but my terminal woun't do it . I'm using Fedora Core 4
i would realy aprecheate it


[Teto@localhost ~]$ su
Password:
[root@localhost Teto]# useradd Adrian
bash: useradd: command not found
[root@localhost Teto]# fdisk -l
bash: fdisk: command not found
[root@localhost Teto]# gftp
bash: gftp: command not found
[root@localhost Teto


??????????????????????

Last edited by teto; 10-26-2005 at 05:25 PM.
 
Old 10-26-2005, 05:15 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
When you do su, put a dash after it so you won't have a problem finding programs.
su -
 
Old 10-26-2005, 05:55 PM   #3
teto
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core
Posts: 6

Original Poster
Rep: Reputation: 0
yeah

what can i say?
sorry to to bother u

but what does the dash "-" stands for?
 
Old 10-26-2005, 07:28 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
No bother at all!

The information from: man su says this...
Code:
    -, -l, --login
              make the shell a login shell

    A mere - implies -l.   If USER not given, assume root.
And googling around, I see this diddy.
"The - option establishes a default environment for the user."

So, if I just type: su fred, I am not really in the same place as if I typed su -l fred or even drop the l and just su - fred.

All you really need to know is that ( su - ) is what I always use so I don't have problems locating programs and commands as the root user.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems with ttyS1 as a Terminal Laoch Linux - General 1 08-24-2005 09:16 AM
Terminal command problems rogleale Linux - Newbie 3 06-21-2004 07:41 AM
Terminal Problems gsibble Linux - General 2 01-05-2004 03:00 PM
Terminal Problems JC404 Linux - Newbie 0 06-28-2003 12:03 AM
Terminal name related problems CARTMAN Linux - Newbie 1 02-13-2002 06:06 AM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration