For beginners, refer to this article. It explains how to set the PATH in FedoraCore. Under the current user. add a row in bashrc: exportPATH = ". :/bin:/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin "and # source. bashrc does not contain any information even if some commands can be called, or you need to enter the root password, which indicates that the command must be run with super permissions.
For beginners, refer to this article. It explains how to set the PATH in Fedora Core.
Add a line in. bashrc of the current user:
Export PATH = ".:/bin:/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
Then
# Source. bashrc
Some commands do not contain any information even if they can be called, or you need to enter the root password, which means you must run them with super permissions;
For example
[Beinan @ localhost ~] $ Fdisk-l
[Beinan @ localhost ~] $ Su
Password:
[Root @ localhost beinan] # fdisk-l
Disk/dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Device Boot Start End Blocks Id System
/Dev/hda1*1 765 6144831 7 HPFS/NTFS
/Dev/hda2 766 2805 16386300 c W95 FAT32 (LBA)
/Dev/hda3 2806 7751 39728745 5 Extended
/Dev/hda5 2806 3825 8193118 + 83 Linux
/Dev/hda6 3826 5100 10241406 83 Linux
/Dev/hda7 5101 5198 787153 + 82 Linux swap/Solaris
/Dev/hda8 5199 6657 11719386 83 Linux
/Dev/hda9 6658 7751 8787523 + 83 Linux
[Root @ localhost beinan]