Linux Note 3 20160715_2
vi, vim
vi is a very strong command line edit software.
vim was the advanced version of vi, adding the support of GUI.
Except vim, emacs is even stronger than vim.
vim + path
to use vim
three modes of vi
command mode
default
i : insert text at the cursor
o : insert a new line below the current one
dd : delete the whole row
yy : put the current row's content to the ram(copy the current line)
n+yy: put n rows' content to the ram(copy n lines)
p : paste
u : revoke the last manipulation
r : replace current character
/ : find key wordinsert mode
i
Esc : back to the command modeex mode
:
:w #save
: q #quit
:q! #force to quit
:set number #show the line number
:! system command # execute a system command
:sh #return to the command line and 'ctrl + d' can return to the vim
Basic concept of disc
轉速越快,磁碟效能越強。但是,功率發熱量都會高。
SATA
- 柱面(cylinder)
立體,多碟片疊加的柱面圈 - 扇區(sector)
中心擴散出來的扇形 - 磁頭(head)
讀寫資料,每個磁碟上下都有個磁頭
磁碟在linux中的表示
裝置名稱一般為hd[a-z]或sd[a-z],如hda,hdb,sda,sdb
IDE裝置的名稱為hd[a-z],SATA,SCSI,SAS,USB等裝置名稱為sd[a-z]
concept of partition
將一個磁碟邏輯的分為幾個區,每個區當作獨立磁碟,以方便管理。
不同分割槽用: 裝置名稱 + 分割槽號 ,如sda1,sda2
主流的分割槽機制分為MBR和GPT兩種。
MBR
Master Boot Record. Traditional one. Applied to most BIOS PC device.
- support 32bit and 64bit
- there is a limit for partition
- support no more than 2T hard disk.
MBR partition
- main partition
at most 4 - extended partition
take a place of the main partition.
can't be used. still need logical partition. - logical partition
can only be created by creating an extended partition first.
Linux can support at most 63 IDE partition and 15 SCSI partition.
GPT
A new one.
- support more than 2T
- compatible with MBR
- only can be used on the hardware that supports UEFI
- only 64bit
- Mac,Linux both support GPT
- Windows 7 64bit, windowsServer2008(win10,win8?)
相關文章
- 【Linux】git note -v command not foundLinuxGit
- 小米Note3和小米6X對比評測 小米6x與小米note3買哪個好
- mysql noteMySql
- OPPO K3和紅米Note7 Pro區別對比評測,紅米Note7Pro和OPPO K3哪個好?
- [Vue] Reactive noteVueReact
- note1
- note2
- Android Transition NoteAndroid
- LeetCode | 383 RanSom NoteLeetCode
- Deep learning - note 1
- JS note ---語句JS
- 三星Note9和三星Note8區別對比 三星Note8和Note9的區別大嗎
- Linux雜記3Linux
- 紅米Note7 Pro引數配置介紹:紅米Note7 Pro相比Note 7有哪些升級?
- note centos初始化CentOS
- Note - 機率與期望
- Note - kruskal 重構樹
- Gaming Dongle Feature Application NoteGAMAPP
- Nebula Graph 1.0 Release Note
- Note——CVE-2010-3333
- [LeetCode] 383. Ransom NoteLeetCode
- 三星Galaxy Note 9評測:最全面的Note旗艦機
- 紅米Note 5宣佈降價:3GB+32GB版售999元
- Linux系統命令3Linux
- 【3】Linux常見命令Linux
- Linux shell基礎3Linux
- Linux裝置模型(3)Linux模型
- 每日一記-note_20200928
- Python Geospatial Development reading note(1)Pythondev
- Android Note - 電量優化Android優化
- TLS回撥函式(Note)TLS函式
- spring-boot-note6---redisSpringbootRedis
- spring-boot-note4---freemarketSpringboot
- SAP Important note on transporting tax codesImport
- Android Note - 程式碼優化Android優化
- Note 886532 - Pricing: Displaying and rounding numbers
- 榮耀Note10巨屏手機來了 小米Max3要靠邊站了?
- 【Tensorflow_DL_Note3】深度學習中的資料處理及其視覺化深度學習視覺化
- Fiori UI上建立的note和web client UI上note的對應關係UIWebclient