LinuxQuestions.org
Help answer threads with 0 replies.
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 11-21-2012, 01:15 PM   #1
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
IS there any package to get all basic commands


Hi to all;

Most of the commands are not found in my OS .
what's the permanent solution ?

IS there any package to get all basic commands ?

PHP Code:
[root@localhost ~]# fstab
-bashfstabcommand not found
[root@localhost ~]# whatis fstab
fstab                (5)  - static information about the filesystems
fstab
-sync           (8)  - Update the /etc/fstab file in response to HAL event 

Last edited by thiyagusham; 11-21-2012 at 01:17 PM.
 
Old 11-21-2012, 01:20 PM   #2
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
fstab is not a command but a file. Usually located in /etc
 
Old 11-21-2012, 01:51 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Most of the commands are not found in my OS.
Which OS is it about ?

? May be this command will tell : $ cat /etc/redhat-release
 
Old 11-21-2012, 02:04 PM   #4
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Hi knudfl;

Thanks to both;
I know this is very old. I am looking to install OEK only.
So i didn't change my OS. Most of the commands are really not found

PHP Code:
[root@localhost oracle]# cat /etc/redhat-release
Enterprise Linux Enterprise Linux AS release 4 (October Update 4
 
Old 11-21-2012, 03:02 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
OK, Redhat EL.

Commands :
As unprivileged user, you have access to the "2500" commands in /usr/bin/.
And 100 in /bin/.

As root, when you do 'su -' ( su <space> <hyphen> ),
you can use the commands in /sbin/ and /usr/sbin/ . ( About 640 commands.)
With 'su' only : No access, i.e. /sbin/ and /usr/sbin/ are not in your PATH.

.

Last edited by knudfl; 11-21-2012 at 03:09 PM.
 
1 members found this post helpful.
Old 11-21-2012, 03:06 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
When you press TAB twice in your prompt, bash tells you something like
"Display all 4567 possibilities? (y or n)"
Well, what are those 4567 choices exactly? Let's find out...
Code:
compgen -c | sort -u > commands && less commands
JJ
 
Old 11-21-2012, 05:18 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
1. that is extremely old. I believe the last version of RHEL4 was 4.9

2. RHEL 4 went out of support in February this year http://www.redhat.com/security/updates/errata/

3. as above, all the cmds are there, so long as you use cmds not files.
You'll have to give us some examples of cmds you think are not there

4. post the result of
Code:
echo $PATH
 
Old 11-21-2012, 08:25 PM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The most common commands (about 100 of them) are supplied by the coreutils package. It is always installed when you install the system.
 
Old 11-22-2012, 06:02 AM   #9
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
One way of looking at which are basic commands is that they are universally available. There are some commands that aren't universally available and a few that are different between different Linux distros (eg, networking commands).

Which commands are you actually missing (and not fstab, which isn't a command and isn't missing)?
 
Old 11-22-2012, 09:12 AM   #10
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Apart from what all other senior members have said if you looking for a package for a missing command then you can use

Code:
# yum whatprovides "command name"
this will show you the package name which provides what particular command (again the command may vary as per different distributions, this one is for RHEl and similar distros like CentOS and OEL)
 
  


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
basic commands siawash Linux - Newbie 12 02-05-2008 06:46 PM
Basic Commands Instantly Linux - Newbie 2 06-29-2007 04:03 PM
looking for basic commands etc? lchisholm SUSE / openSUSE 4 05-03-2007 12:15 AM
Basic Commands Help willbasmith Linux - Hardware 1 02-16-2007 09:05 AM
Basic commands? MrPolite Linux - General 5 11-08-2002 09:19 PM

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

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