Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
From some reason i don't think i have fdisk on my version of Linux (Fedora 2). i have the manual, but when i try to run the program, it say "command not found". SO two questions:
1. Do i have it and don't know it?
2. Where can you download it, and does it come as a fiel that you put into your /bin directory?
Awesome,. now i checked my $PATH constant, and it does NOT include /sbin, this is probaly why i get the error ("bash: fdisk: command not found"). Questions:
1: is there i link in the /bin directory that links to fdisk?
2: How to i include ?sbin in my $PATH constant?
Yep, that's why - if it's not on your path, it doesn't exist as a command for you.
No link - you can make one with the 'ln' command and the '-s' option, but it wouldn't do any good by itself.
As far as the path, it depends on the shell but for bash, you just 'export PATH=$PATH:/path/you/want' and/or add it to your bash config file.
However, fdisk either explicitly checks the UID of the invoking user or at least knows the perms of the underlying devices so, as I say, you can't do anything useful with fdisk as normal user. Just 'su' and invoke it.
hi
normal users path dosen't include /sbin directory .
Only root users path contains /sbin directory
and only root user has the permission to exicute the fdisk command
evnthough u add the /sbin directory to your path most of the commands
wont work due to permission.
for adding path open .bash_profile in ur home directory and add the /sbin to path varible
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.