adsense

顯示具有 linux 標籤的文章。 顯示所有文章
顯示具有 linux 標籤的文章。 顯示所有文章

2011-09-24

[linux] fidisk /dev /sdb

fidisk /dev /sdb
m ==>menu (選單)
p ==>partition (區塊/分區)
n ==>new disk (新增 硬碟)
1 ==> 數字
p ==>partition
w ==> 寫入

2011-09-16

[linux] 常用指令


cd
回上一層目錄
pwd
回最上層目錄
mkdir 資料夾名稱
新增資料夾
vim hello.c
新增 文件hello.c
i
插入模式
自動對齊
esc
gg
v
g
=
儲存
esc
:wq!
編譯 執行
gcc -o hello hello.c
ls
./hello
取代
原本的字->r->取代字
工作管理員
kill -p pid
複製一份
cp hello.c myhello.c
ls
diff hello.c myhel
重新命名
rm -f -檔名
移除
rm -rf 檔名
關機
shutdown -h now