久久一区激情,国产在线久久久,成人看片网站,国产香蕉一区二区三区在线视频

win7系統(tǒng)下載
當(dāng)前位置: 首頁 > 硬件軟件教程 > 詳細(xì)頁面

Linux Issue | bash: fdisk-l: command not found處理

發(fā)布時(shí)間:2025-05-11 文章來源:xp下載站 瀏覽:

[root@localhost boot]# fdisk-l <--使用 fdisk命令時(shí)候 出現(xiàn)如下錯(cuò)誤
bash: fdisk-l: command not found
[root@localhost boot]# whereis fdisk <--查詢fdisk命令的位置
fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz
[root@localhost boot]# echo $PATH <---查詢環(huán)境變量
/nfs/smartsvn/bin:/usr/local/sbin:/sbin:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/java/jdk1.7.0_25/bin:/usr/dev/svnclient/smartsvn-7_5_2/bin
[root@localhost boot]# echo $PATH | grep /sbin/fdisk <--再次確認(rèn)確實(shí)沒有fdisk命令所在位置
[root@localhost boot]# ln -s /sbin/fdisk /usr/local/sbin <--fdisk添加到當(dāng)前命令搜索路徑中即可
[root@localhost boot]# cd /usr/local/sbin <--確認(rèn)fdisk已經(jīng)添加到環(huán)境變量
[root@localhost sbin]# ls -F |grep /sbin/fdisk
[root@localhost sbin]# ls -F
fdisk@

[root@localhost sbin]# fdisk -l<--使用fdisk命令
Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f1e94
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 2354 18598912 83 Linux
/dev/sda3 2354 2611 2064384 82 Linux swap / Solaris

本文章關(guān)鍵詞: Linux Issue bash fdisk-l comma 
主站蜘蛛池模板: 金昌市| 宿松县| 灵璧县| 呼和浩特市| 喀喇沁旗| 长泰县| 牙克石市| 阿瓦提县| 岳阳县| 东阳市| 蕲春县| 张掖市| 新宾| 崇阳县| 洛宁县| 托里县| 师宗县| 桐柏县| 永清县| 岳池县| 嵩明县| 奈曼旗| 丹江口市| 麻栗坡县| 平潭县| 台前县| 杨浦区| 宜宾市| 封开县| 万年县| 克东县| 新昌县| 三江| 临沧市| 乌兰浩特市| 台山市| 湘潭县| 科技| 潜江市| 新乡县| 浦北县|