本文主要是介绍linux学习笔记二,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
linux学习笔记二
文章目录
finding
hyx@hyx-computer:~$ cd mnt
-bash: cd: mnt: No such file or directory
hyx@hyx-computer:~$ cd /mnt
hyx@hyx-computer:/mnt$ cd c
hyx@hyx-computer:/mnt/c$ cd users
hyx@hyx-computer:/mnt/c/users$ cd 1
hyx@hyx-computer:/mnt/c/users/1$ cd desktop
hyx@hyx-computer:/mnt/c/users/1/desktop$ dir
API5.0.json Notepad++.lnk Visual\ Studio\ Code.lnk fireworks.html python_server
FileZilla\ Client.lnk OpenCV中文官方文档.pdf WPS\ Office.lnk learning_linux test_yxhu
Gihosoft\ TubeGet.lnk PuTTY\ (64-bit).lnk WinRAR.lnk mongo.exe.lnk wxFormBuilder.lnk
Git\ Bash.lnk QQ.exe.lnk animals msedge.exe.lnk ximalaya
GitHub\ Desktop.lnk QQ截图20220111092930.jpg animals.tar.gz node 百度网盘.lnk
Google\ Chrome.lnk ShadowsocksR-win-4.9.0 desktop.ini node1
hyx@hyx-computer:/mnt/c/users/1/desktop$ cd learning_linux/
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ dir
test1 test1_ test2 test3
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ tree
.
├── test1
│ ├── test1.txt
│ ├── test2.yxt
│ └── test3.txt
├── test1_
│ └── test1_.txt
├── test2
│ ├── 00.txt
│ ├── 04.txt
│ ├── 05.txt
│ ├── text01.txt
│ ├── text02.txt
│ ├── text03.txt
│ ├── text04.txt
│ ├── text05.txt
│ ├── text06.txt
│ ├── text07.txt
│ ├── text08.txt
│ ├── text09.txt
│ └── text10.txt
└── test3
└── test3
5 directories, 17 files
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ cd test1
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ gzip test1.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt.gz test2.yxt test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ gzip test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt.gz test2.yxt test3.txt.gz
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ gunzip test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt.gz test2.yxt test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ gunzip test1.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt test2.yxt test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ gzip test2.yxt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt test2.yxt.gz test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt test2.yxt.gz test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ gzip test1.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt.gz test2.yxt.gz test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ bzip2 test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt.gz test2.yxt.gz test3.txt.bz2
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ tar cf guidnag.tar test3.txt.bz2
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
guidnag.tar test1.txt.gz test2.yxt.gz test3.txt.bz2
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cat guidnag.tar
test3.txt.bz20000777000175000017500000000001614172475661011600 0ustar hyxhyxBZh9rE8Phyx@hyx-computerhhhyhyhhhhhhyhyhhyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
guidnag.tar test1.txt.gz test2.yxt.gz test3.txt.bz2
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ tar xf test3.txt.bz2
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
guidnag.tar test1.txt.gz test2.yxt.gz test3.txt.bz2
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cat guidnag.tar
test3.txt.bz20000777000175000017500000000001614172475661011600 0ustar hyxhyxBZh9rE8Phyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ tar xf guidnag.tar -C
tar: option requires an argument -- 'C'
Try 'tar --help' or 'tar --usage' for more information.
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ tar xf guidnag.tar -C /
tar: test3.txt.bz2: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ tar xf guidnag.tar -C ./
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
guidnag.tar test1.txt.gz test2.yxt.gz test3.txt.bz2
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cat guidnag.tar
test3.txt.bz20000777000175000017500000000001614172475661011600 0ustar hyxhyxBZh9rE8Phyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ tar -x guidnag.tar
tar: Refusing to read archive contents from terminal (missing -f option?)
tar: Error is not recoverable: exiting now
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ tar -x guidnag.tar ./
tar: Refusing to read archive contents from terminal (missing -f option?)
tar: Error is not recoverable: exiting now
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ tar -xf guidnag.tar ./
tar: .: Not found in archive
tar: Exiting with failure status due to previous errors
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ tar xf guidnag.tar -C ./
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$
到此为止,使用了两篇文章实现了linux的基础内容的总结和汇总,最后,谢谢大家的阅读与支持了啦。
这篇关于linux学习笔记二的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!