Skip to content

Latest commit

 

History

History
123 lines (85 loc) · 2.88 KB

0.md

File metadata and controls

123 lines (85 loc) · 2.88 KB

0

arch linux

mount umount

将 /dev/hda1 挂在 /mnt 之下。

#mount /dev/hda1 /mnt

挂载概念:

Linux中的根目录以外的文件要想被访问,需要将其“关联”到根目录下的某个目录来实现,这种关联操作就是“挂载”,这个目录就是“挂载点”,解除次关联关系的过程称之为“卸载”(umount)。

pacman

pacman -S [download]...

KDE 图形界面

无线网络连接问题

安装输入法以及fcitx的使用

加入archlinuxcn源:下载typora

common operations

ls

ls -a: 包含所有文件(显示开头为.的隐藏文件)

ls -l: 查看文件属性、大小等信息

如:

ccrr@cr ~> ls -l
total 16
drwx------ 3 ccrr ccrr 4096 Apr  5 19:03 Desktop
drwxr-xr-x 2 ccrr ccrr 4096 Apr  5 19:03 Downloads
drwxr-xr-x 3 ccrr ccrr 4096 Apr  5 14:36 snap
drwxr-xr-x 5 ccrr ccrr 4096 Apr  5 14:31 snapd
ccrr@cr ~> ls -al
total 92
drwx------ 13 ccrr ccrr 4096 Apr  5 22:50 .
drwxr-xr-x  3 root root 4096 Apr  5 11:21 ..
-rw-------  1 ccrr ccrr   47 Apr  5 22:50 .Xauthority
-rw-------  1 ccrr ccrr 1396 Apr  5 20:42 .bash_history
-rw-r--r--  1 ccrr ccrr   21 Dec 21 02:44 .bash_logout
-rw-r--r--  1 ccrr ccrr   57 Dec 21 02:44 .bash_profile
-rw-r--r--  1 ccrr ccrr  141 Dec 21 02:44 .bashrc
drwxr-xr-x 22 ccrr ccrr 4096 Apr  5 23:11 .cache
drwxr-xr-x 23 ccrr ccrr 4096 Apr  5 23:20 .config
-rw-r--r--  1 ccrr ccrr   51 Apr  5 15:28 .gitconfig
-rw-r--r--  1 ccrr ccrr  270 Apr  5 22:50 .gtkrc-2.0
drwxr-xr-x  3 ccrr ccrr 4096 Apr  5 12:57 .kde4
drwxr-xr-x  3 ccrr ccrr 4096 Apr  5 12:57 .local
drwx------  5 ccrr ccrr 4096 Apr  5 13:53 .mozilla
-rw-r--r--  1 ccrr ccrr   89 Apr  5 20:07 .pam_environment
drwx------  3 ccrr ccrr 4096 Apr  5 15:00 .pki
-rw-------  1 ccrr ccrr 2259 Apr  5 20:07 .viminfo
drwxr-xr-x  3 ccrr ccrr 4096 Apr  5 15:00 .vscode-oss
-rw-r--r--  1 root root   81 Apr  5 14:43 .xprofile
drwx------  3 ccrr ccrr 4096 Apr  5 19:03 Desktop
drwxr-xr-x  2 ccrr ccrr 4096 Apr  5 19:03 Downloads
drwxr-xr-x  3 ccrr ccrr 4096 Apr  5 14:36 snap
drwxr-xr-x  5 ccrr ccrr 4096 Apr  5 14:31 snapd

ls -d: 查看指定目录下的权限和属性信息

cd

cd ./xxx 以及 cd xxx : 从当前目录进入 cd /xxx 从根目录开始进入

mkdir

mkdir + 文件夹名 创建文件夹

touch

touch + 文件: 创建文件

cp

cp soucefile_path targetfile_path: 复制文件到指定路径

rm

rm -rf

find

find [查找路径] 寻找条件 操作

ccrr@cr ~> sudo find /etc -name "host*"
/etc/hosts
/etc/hostname
/etc/apparmor.d/abstractions/hosts_access
/etc/avahi/hosts
/etc/host.conf

mv

mv sourcefile_path targetfile_path: 移动文件到指定路径

grep

grep 选项 file :文本搜索匹配

ccrr@cr ~> sudo grep grep ~/Desktop/mission/0.md 
[sudo] password for ccrr: 
### grep
`grep 选项 file` :文本搜索匹配