linux学习笔记二
linux学习笔记二
文章目录
- linux学习笔记二
- finding
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└── test35 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学习笔记二相关推荐
- Linux学习笔记二:Ubuntu启用root用户、更改软件源以及安装vim
目录 1. 概述 2. 启用root用户 3.更改软件源 4. 安装VIM 5. GCC编译hello.c文件 1. 概述 在上一章中我们在虚拟机中安装了Ubuntu系统,从这章开始,就正式在开启li ...
- Linux学习笔记二Shell教程
Shell 教程 Shell 是一个用 C 语言编写的程序,它是用户使用 Linux 的桥梁.Shell 既是一种命令语言,又是一种程序设计语言. Shell 是指一种应用程序,这个应用程序提供了一个 ...
- Linux学习笔记(二):cd命令的使用
1.这篇文章,来介绍一下cd命令,cd命令是一个切换目录指令,在linux下经常使用,比如访问文件时,通常都需要访问文件的路径.利用cd指令切换到其它的目录下去,访问当前工作目录下的文件. 2.首先, ...
- Linux 学习笔记 二
压缩解压缩 压缩格式:gz bz2 xz zip z 压缩算法,算法不同,压缩比也不同 compress: filename.Z uncompress: 不能压缩文件夹,会将文件夹内的文件单个压缩 g ...
- Linux 学习笔记——二、主机规划与磁盘分区
一.Linux 与硬件的搭配 Linux 中所有设备均被视为文件,其命名规则如下: 设备 文件名 SCSI/SATA/USB 硬盘机 /dev/sd[a-p] USB 闪存盘 /dev/sd[a-p] ...
- Linux学习笔记(二) 安装Fedora Linux
第二课:安装Fedora Linux .安装前的准备 .收集硬件信息 .准备安装文件 .准备安装空间 .确定安装方式 .开始安装 .安装后的配置 收集硬件信息 .检查兼容性 .RedHat Linux ...
- Linux学习笔记二十——系统裁剪之二
在系统裁剪之一的基础上,给系统添加挂载文件系统.关机重启.设置主机名.运行对应级别的服务脚本.启动终端.装载网卡驱动并启用网络等功能. 挂载文件系统 ①重新挂载根文件系统为可读写 vim 编辑/mnt ...
- Linux学习笔记二十九——http服务
基础概念: HTTP:Hyper Text Transfer Protocol 超文本传输协议 versions: HTTP/0.9:只接收GET一种请求方法,只支持纯文本 HTTP/1.0:支持PU ...
- Linux中常用的文件目录,Linux学习笔记2——Linux中常用文件目录操作命令
ls 显示文件和目录列表 -l 列出文件的详细信息 -a 列出当前目录所有文件,包含隐藏文件 mkdir 创建目录 -p 父目录不存在情况下先生成父目录 cd 切换目录 touch 生成一个空文件 e ...
最新文章
- Web安全之XSS漏洞
- 如何写圆角矩形用html,圆角矩形的html+css实现
- for循环利用可迭代对象与迭代器完成工作的本质
- 对象复制的7种方法,还是Spring的最好用!
- 用java二分法计算a的n次幂_用二分法计算a的n次幂算法分析
- ActiveMQ简单介绍+简单实例
- Prometheus 的云上 MySQL 监控实践
- 使用队列(Queue)解决简单的并发问题
- php排序函数实例学习教程
- 《Netty权威指南》(二)NIO 入门
- 解决 git branch -a 无法全部显示远程的分支,只显示master分支
- 【优化算法】世界杯优化算法(WCOA)【含Matlab源码 1427期】
- 直通输出设备 android kodi,分享RK3188芯片XBMC实现音频HDMI源码输出的方法
- 鼠标单击双击事件监听
- 负数和正数的存储方式。
- 解决各个浏览器文件下载中文乱码问题
- 高位在前低位在后是啥意思_详解MACD指标的死叉卖点:低位死叉+高位死叉+零轴附近死叉...
- CentOS6开启BBR加速
- 软件包下载地址(一)
- PXC高可用集群(MySQL)