0%

ArchLinux tips

DISK

tool

  • fdisk
  • cfdisk

command

  • lsblk
  • dd

日常使用

包管理 pacman

必须使用sudo

-S 同步/安装
pacman -S vim 安装一个包
pacman -Ss keyword 查找包
pacman -Syu 更新系统(和所有包)

-R remove
pacman -R vim 删除一个包

-Q query
pacman -Qqe 查询本地安装的所有包

配置

  • ~/.xxx 一般是.xxxrc .xxxconfig
  • ~/.config/programm/config

eg. ~/.vimrc

VIM 配置移动到:
~/.vim_runtime/

常用软件

导航 hjkl

TERMINAL : xfce-terminal

FILES : ranger , nnn

VIM :
三种模式

  1. NOMAL ESC
    normal 模式下,所有的输入都视为命令,一般重复输入命令比如dd,yy,意思是处理当前行
  • d : delete
  • y : copy
  • p : paste
  • u : undo
  • x : delete char
  • 冒号:

关键词:

  • w : word
  • gg : 文章开头
  • G : 文章结束
  1. INSERT i,a,o , and cw (change word)
  2. VISUAL v

iftop:
sudo iftop -i wlp3s0(无线网卡 or enp2s0 有线)

libreoffice: office instead

1
df #查看磁盘使用情况