LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-22-2013, 09:17 PM   #1
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
commands not found


Hello Everyone ;

Basic commands not working why ?

redhat 5.1 fresh installation.

PHP Code:
# cd /mnt/hgfs/
[root@oracle hgfs]# ls -l
total 0
drwxrwxrwx 1 root root 0 Sep 23 04
:44 oracle

[root@oracle hgfs]# cd oracle/
[root@oracle oracle]# ls -l
total 340748
-rwxrwxrwx 1 root root 668734007 Oct  4  2008 10.2.0.1_database_software_linux32.zip

[root@oracle oracle]# unzip 10.2.0.1_database_software_linux32.zip 
bashunzipcommand not found 
PHP Code:
[oracle@oracle oracle]$ export PATH=$PATH:/bin:/usr/local/bin
[oracle@oracle oracle]$ echo $path
...... no output .............
[
oracle@oracle oracle]$ 
thnaks ..

Last edited by thiyagusham; 09-22-2013 at 09:18 PM.
 
Old 09-22-2013, 09:42 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,346
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
What is the output of

Code:
whereis unzip
As for path, I think that "PATH" is case sensitive. Try

Code:
echo $PATH
 
Old 09-22-2013, 09:44 PM   #3
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Hello frankbell

PHP Code:
which bash
/bin/bash
[oracle@oracle ~]$ whereis unzip
unzip
:
[
oracle@oracle ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/bin:/usr/local/bin 
 
Old 09-22-2013, 10:25 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,346
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
No program named unzip appears to be installed. (Whereis is a great utility. It looks only for executable programs and ignores libraries, configuration files, and all the other stuff that will turn up when you use locate.)

This link might help. It informs me that unzip is often not included in Linux distros and suggests ways to get it. You may also be able to decompress zipped files using Gnome's file roller or KDE's Ark, if you have either of those programs installed.

Unzip is something I haven't had occasion to use for a long time.

Last edited by frankbell; 09-22-2013 at 10:26 PM.
 
Old 09-22-2013, 11:02 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
redhat 5.1 fresh installation.
I guess you mean Redhat EL 5.1 ? Redhat 5.1 is a 1998 release :
http://en.wikipedia.org/wiki/Red_Hat_Linux

Still too old : Current is RHEL 5.9 ! http://distrowatch.com/?newsid=04579
Update 5.9 http://distrowatch.com/?newsid=07657


$ which unzip
/usr/bin/unzip/
.. That's a new install of the free Redhat EL5 version : CentOS 5.9 .

`unzip' is not a Linux / Unix command and may not be installed
by default, RHEL 5.1 . But it's easy to get : # yum install unzip

-
 
Old 09-23-2013, 01:59 AM   #6
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
@ knudfl

Thanks for your reply. but still NOT workable. Can you provide any other way to do ??

PHP Code:
# yum install unzip
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match 
for argumentunzip
Nothing to 
do

[
root@oracle ~]# whereis unzip
unzip:

# cd /mnt/hgfs/oracle
# ls -l
total 340748
-rwxrwxrwx 1 root root 668734007 Oct  4  2008 10.2.0.1_database_software_linux32.zip
[root@oracle oracle]# unzip 10.2.0.1_database_software_linux32.zip 
bashunzipcommand not found 
PHP Code:
# which unzip
/usr/bin/whichno unzip in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

Last edited by thiyagusham; 09-23-2013 at 02:02 AM.
 
Old 09-23-2013, 02:32 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I don't know anything about RHEL. I thought you paid for support if you use it. Anyway, Debian certainly has an unzip package. You might find more information here.
Here's the Debian description of the package:
Quote:
:~$ aptitude show unzip
Package: unzip
State: installed
Automatically installed: yes
Multi-Arch: foreign
Version: 6.0-9
Priority: optional
Section: utils
Maintainer: Santiago Vila <sanvila@debian.org>
Architecture: amd64
Uncompressed Size: 386 k
Depends: libbz2-1.0, libc6 (>= 2.4)
Suggests: zip
Conflicts: unzip-crypt (< 5.41), unzip-crypt (< 5.41), unzip
Replaces: unzip-crypt (< 5.41), unzip-crypt (< 5.41)
Provides: unzip
Provided by: unzip
Description: De-archiver for .zip files
InfoZIP's unzip program. With the exception of multi-volume archives (ie, .ZIP files that are split across
several disks using PKZIP's /& option), this can handle any file produced either by PKZIP, or the
corresponding InfoZIP zip program.
jdk
 
Old 09-23-2013, 03:39 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 6 .
Quote:
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
When you have "No Repositories Available", no packages can be installed.
Except those you have in your own local repository : $ yum list all

Choices for a solution : Activate the "Redhat license / subscription".
Or migrate the OS to CentOS 6 . EDIT : CentOS 5.
http://wiki.centos.org/HowTos/MigrationGuide

Or use a CentOS 6 package : EDIT → See post #10.
Which you can do for a package with "no dependencies" : unzip-6.0-1.el6.<arch>.rpm
http://mirror.centos.org/centos/6.4/os/
→ # yum localinstall unzip-6.0-1.el6.<arch>.rpm

-

Last edited by knudfl; 09-23-2013 at 06:48 AM.
 
Old 09-23-2013, 05:22 AM   #9
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
hello knudfl

please see the screen shot.

i cannot see any items under # cd /media/

[root@oracle ~]# cd /media/
[root@oracle media]# ls -l
total 0
Attached Thumbnails
Click image for larger version

Name:	Untitled_01.png
Views:	25
Size:	57.4 KB
ID:	13517   Click image for larger version

Name:	Untitled_02.png
Views:	23
Size:	158.7 KB
ID:	13518  

Last edited by thiyagusham; 09-23-2013 at 05:43 AM.
 
Old 09-23-2013, 06:47 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Ref. post # 8.

Sorry, the unzip package : Should be an el5 package :
unzip-5.52-3.el5.<arch>.rpm
http://mirror.centos.org/centos/5.9/os/


Post # 9 : Don't know why you are listing /media/ ?
( The list 01.png shows a few of the installed packages.)

-
 
Old 09-23-2013, 09:29 AM   #11
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Try "gunzip". This is a GNU reimplementation (hence the different name), but provides the same functionality.
 
Old 09-23-2013, 01:41 PM   #12
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,175

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
Quote:
Originally Posted by jpollard View Post
Try "gunzip". This is a GNU reimplementation (hence the different name), but provides the same functionality.
No gzip/gunzip does NOT provide the same functionality as zip/unzip! They work with completely different formats by default (gz compressed files versus zip compressed archives) and they use different switches. All these utils share share is the fact that they use Deflate compression by default and all utilities were born out of the Info-ZIP project.

EDIT: GNU's gunzip does have an extra feature that means it can extract files created by zip but only if they have a single member compressed with the 'deflation' method. The file the OP mentions is clearly an archive with multiple files, so this will fail.

Last edited by ruario; 09-23-2013 at 01:49 PM.
 
1 members found this post helpful.
Old 09-23-2013, 02:18 PM   #13
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,175

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
If you have problems with RHEL you should really contact RedHat.

However, assuming you really are running RedHat 5.1 (32-bit), this should work. Issue the following as root:

Code:
rpm -ivh http://mirror.centos.org/centos/5.9/os/i386/CentOS/unzip-5.52-3.el5.i386.rpm
 
Old 09-23-2013, 09:43 PM   #14
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,346
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Whoops, I didn't read ruario's post thoroughly, but I'm leaving this here as the command shown below might help.

Try

Code:
yum provides unzip
If I recall correctly that should tell you what package(s) would include unzip. Unfortunately, I do not have a RHEL or CentOS installation on which I can test the command.

This page for the CentOS docs will tell you more.

http://www.centos.org/docs/5/html/yu...-packages.html

Remember that RHEL is not designed for desktop use--it designed for use in the Enterprise as a server OS. It may not provide the same functionality in all cases as a distro designed for desktop use.
 
Old 09-24-2013, 07:24 AM   #15
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,175

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
I presume this is also the OP https://forums.oracle.com/thread/2584692
 
  


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
[SOLVED] Commands not found......... TomOmega Linux - Newbie 4 05-11-2011 07:40 PM
LVM commands not found fizeelinux Linux - Software 7 07-28-2009 05:01 AM
Commands not found in fedora core4 tjgadu Linux - Newbie 1 10-26-2005 07:32 AM
why some of my commands not found sleepyguy Linux - Newbie 4 01-10-2005 10:07 PM
No commands are found?? Help AmdMhz Linux - Newbie 2 06-16-2004 12:25 AM


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