Find the answer to your Linux question:
Results 1 to 4 of 4
This must be explained quite a bit in this forum, but I have no suitable search term. I am trying out several commands, much based on tutorials. However not all ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Dec 2004
    Posts
    323

    Some commands not available


    This must be explained quite a bit in this forum, but I have no suitable search term. I am trying out several commands, much based on tutorials. However not all commands seem to be available, not even to the root user. One example is fdisk:
    Code:
    [root@localhost]# fdisk -l /dev/hda
    bash: fdisk: command not found
    [root@localhost]# yum install fdisk
    Setting up Install Process
    Setting up repositories
    [...edited for brevity...]
    Added 13 new packages, deleted 40 old in 31.18 seconds
    Parsing package install arguments
    No Match for argument: fdisk
    Nothing to do
    [root@localhost]# ./fdisk
    bash: ./fdisk: No such file or directory
    [root@localhost]# fdisk
    bash: fdisk: command not found
    [root@localhost]# man fdisk
    
    [4]+  Stopped                 man fdisk
    In other words, it is installed, but I cannot invoke it. I must be doing something pretty elementary wrong here. Apart from my main question how I invoke a command like fdisk, I also wonder why packages are added and deleted, but yet the install procedure reaches the conclusion there is nothing to do.

    Thanks in advance


    Tech

  2. #2
    Linux Engineer
    Join Date
    Jan 2005
    Location
    Chicago (USA)
    Posts
    1,028
    Add /sbin to your $PATH.

  3. #3
    Linux User
    Join Date
    Dec 2004
    Posts
    323
    Hi a thing

    Thanks for your quick response. I'll have a try and google around and see what that accomplishes.

    Best

    Tech

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    Quote Originally Posted by technossomy
    Hi a thing

    Thanks for your quick response. I'll have a try and google around and see what that accomplishes.

    Best

    Tech
    It accomplishes that apps relying in /sbin will be runnable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •