chmod
1 | chmod [options] mode[,mode] file1 [file2 ...] |
Usual implemented options include:
-R recursive, i.e. include objects in subdirectories
-f force, forge ahead with all objects even if errors occur
-v verbose, show objects processed
1 | $ ls -halF |
前三个是user的权限,中间是group,最后是others。
使用方法
1 | # 改变user的权限,使得user可以write和read |
Reference:
https://en.wikipedia.org/wiki/Chmod
chown
1 | $ sudo chown -R $USER: ./ |
multiprocessing
多进程加快程序运行。
1 | from multiprocessing import Pool, cpu_count |
cpu_count可以看cpu数量。
可以通过htop
查看thread数量。
tmux
1 | tmux |
在ssh后,可以用tmux open a session,这样即使把terminal关了也可以挂着程序跑。