Re: How to Begin - fdisk
Hi,
2012/8/20 <ray@aarden.us>:
> I just installed Debian. If I issue:
> ls -alR
> I get output. Some things work.
>
> If I issue:
> fdisk
> or
> fdisk -l
> I get 'command not found'.
> What might I be doing wrong?
That's a common issue when starting with Debian (not sure with other
distributions) : /sbin and /usr/sbin directories are not in the user
path.
You can use whereis command to find where a command is located :
$ whereis fdisk
fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz
Anyway, a normal user can't use fdisk, so try login as root, or "su -
root" in a terminal.
If you want your user to be able to access easily /sbin and /usr/sbin
directories, add this line in the .bashrc file in the home directory
of your user :
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
By the way, /usr/game isn't either in the path.
Sebastien
Reply to: