LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-30-2014, 05:48 AM   #1
caddysundar
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
How to check if fdisk is install or not?


I want to check fdisk is install aor not
 
Old 12-30-2014, 12:05 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by caddysundar View Post
I want to check fdisk is install aor not
fdisk is one of the most basic tools and should be available even in extremely stripped-down systems.

However, how were you going to detect this?
You could simply invoke 'fdisk --help' and look at the return code, or at the output.

[X] Doc CPU
 
Old 12-30-2014, 12:06 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,898
Blog Entries: 27

Rep: Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185
Member response

Hi,

Welcome to LQ!

As root you can do a 'which fdisk' from the cli.
 
Old 12-30-2014, 01:24 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,229

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
you type
Code:
su -
fdisk --help
if nothing happens , not installed .

but it WILL be installed
 
Old 12-30-2014, 02:16 PM   #5
make install clean
LQ Newbie
 
Registered: Dec 2014
Posts: 11

Rep: Reputation: Disabled
@caddysundar

fdisk is usually installed by default so there's no need to worry. Also cfdisk may be installed as well. Both programs do the same thing. The only difference between the two is cfdisk has the menus/settings at the bottom to create/modify/write partitions, while fdisk doesn't. You have to toggle the help menu by pressing the letter 'm' and then a list of letters associated for a specific task will be shown.

I've used fdisk so long, I rarely go to the help menu because I remembered most of the actions for those letters.

good luck

Last edited by make install clean; 12-30-2014 at 02:36 PM.
 
Old 12-30-2014, 03:55 PM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,642
Blog Entries: 56

Rep: Reputation: Disabled
Try:
Code:
locate fdisk
 
  


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
How do I install fdisk? drainingthoughts Linux - Newbie 13 12-30-2014 09:18 AM
install - hd's not seen by fdisk AtWorkSlacking Linux - Newbie 2 07-01-2008 12:59 AM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
Fdisk after linux install newestuser Linux - Laptop and Netbook 1 01-19-2007 07:31 PM
trouble with fdisk/install tsw Slackware 2 06-15-2004 03:18 PM

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

All times are GMT -5. The time now is 08:02 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