Linux常用命令

vim设置内容为unix编码

:set fileformat=unix :w

卸载vim

/usr/bin/pacman -Rsn vim

查看当前linux版本

uname -a

查看当前linux是64位还是32位

file /bin/ls

查看当前正在使用的官方源:

grep '[#]' /etc/pacman.d/mirrorlist

不用开太多的源,而且可能有的源已经不再官方源列表上

pacman -Qi nodejs

查看Node版本

node --version

查看node位置

which -a node

查看各个目录都是干什么的

man hier