1.touch命令的使用

2.使用(cd -)可以在上次使用的目录来回切换

3.ls通配符的使用*代表任意字符和任意个字符, ?代表任意一个字符, [12345]中的任意一个字符, [1-5]中的任意一个字符.

 1 linxmouse@ubuntu:~/Desktop$ touch 123
2 linxmouse@ubuntu:~/Desktop$ touch 223
3 linxmouse@ubuntu:~/Desktop$ touch 323
4 linxmouse@ubuntu:~/Desktop$ touch 423
5 linxmouse@ubuntu:~/Desktop$ touch 523
6 linxmouse@ubuntu:~/Desktop$ ls *3
7 123 223 323 423 523
8 linxmouse@ubuntu:~/Desktop$ ls ?3
9 ls: cannot access '?3': No such file or directory
10 linxmouse@ubuntu:~/Desktop$ ls ?23
11 123 223 323 423 523
12 linxmouse@ubuntu:~/Desktop$ ls 2?3
13 223
14 linxmouse@ubuntu:~/Desktop$ ls [125]23
15 123 223 523
16 linxmouse@ubuntu:~/Desktop$ ls []23
17 ls: cannot access '[]23': No such file or directory
18 linxmouse@ubuntu:~/Desktop$ ls [1]3
19 ls: cannot access '[1]3': No such file or directory
20 linxmouse@ubuntu:~/Desktop$ ls [1-2]3
21 ls: cannot access '[1-2]3': No such file or directory
22 linxmouse@ubuntu:~/Desktop$ ls [1-2]23
23 123 223

4.ls的-h,

-h, --human-readable
with -l and/or -s, print human readable sizes (e.g., 1K 234M 2G)

 1 linxmouse@ubuntu:~$ ls -lh
2 total 36K
3 drwxr-xr-x 2 linxmouse linxmouse 4.0K Oct 15 09:53 Desktop
4 drwxr-xr-x 2 linxmouse linxmouse 4.0K Sep 3 06:51 Documents
5 drwxr-xr-x 2 linxmouse linxmouse 4.0K Sep 3 06:51 Downloads
6 drwxr-xr-x 2 linxmouse linxmouse 4.0K Sep 3 06:51 Music
7 drwxr-xr-x 2 linxmouse linxmouse 4.0K Sep 3 06:51 Pictures
8 drwxr-xr-x 2 linxmouse linxmouse 4.0K Sep 3 06:51 Public
9 drwxrwxr-x 3 linxmouse linxmouse 4.0K Oct 15 06:47 temp
10 drwxr-xr-x 2 linxmouse linxmouse 4.0K Sep 21 19:20 Templates
11 drwxr-xr-x 2 linxmouse linxmouse 4.0K Sep 3 06:51 Videos

Linux之温故知新1的更多相关文章

  1. Linux之温故知新2

    1.关于ssh免密码登陆的ssh-keygen, ssh-copy-id的使用, 然后使用ssh-copy-id user@remote将公钥传给服务器, 以及别名 1 C:\Users\linxmo ...

  2. Linux 驱动开发

    linux驱动开发总结(一) 基础性总结 1, linux驱动一般分为3大类: * 字符设备 * 块设备 * 网络设备 2, 开发环境构建: * 交叉工具链构建 * NFS和tftp服务器安装 3, ...

  3. Linux系统编程温故知新系列 --- 01

    1.大端法与小端法 大端法:按照从最高有效字节到最低有效字节的顺序存储,称为大端法 小端法:按照从最低有效字节到最高有效字节的顺序存储,称为小端法 网际协议使用大端字节序来传送TCP分节中的多字节整数 ...

  4. 温故知新-快速理解Linux网络I/O

    文章目录 摘要 阻塞.非阻塞.同步.异步 Linux下的I/O模型 阻塞I/O模型 非阻塞I/O模型 I/O复用模型 select poll epoll 信号驱动I/O模型 异步I/O 参考 你的鼓励 ...

  5. Linux 驱动学习笔记05--字符驱动实例,实现一个共享内存设备的驱动

    断断续续学驱动,好不容易有空,做了段字符驱动的例子.主要还是跟书上学习在此记录下来,以后说不定能回过头来温故知新. 首先上驱动源码 gmem.c: /************************* ...

  6. linux常用命令总结篇

    关于linux的一些基础命令,以前也学过,但是长时间不用还是感觉生疏了,所以记录下来以便后期温故知新. 1. cd:cd命令用来切换工作目录至dirname.cd ~ 进入用户主目录,cd - 进入之 ...

  7. Linux dts 设备树详解(一) 基础知识

    Linux dts 设备树详解(一) 基础知识 Linux dts 设备树详解(二) 动手编写设备树dts 文章目录 1 前言 2 概念 2.1 什么是设备树 dts(device tree)? 2. ...

  8. 温故知新-多线程-深入刨析volatile关键词

    文章目录 摘要 volatile的作用 volatile如何解决线程可见? CPU Cache CPU Cache & 主内存 缓存一致性协议 volatile如何解决指令重排序? volat ...

  9. 温故知新-java的I/O模型-BIO&NIO&AIO

    文章目录 摘要 传统的BIO编程 伪异步I/O编程 NIO编程 AIO编程 几种IO模型的对比 netty 参考 你的鼓励也是我创作的动力 Posted by 微博@Yangsc_o 原创文章,版权声 ...

随机推荐

  1. clr via c# delegate

    1,委托列子 internal delegate void Feedback(int value); class DelegateRef { public static void StaticDele ...

  2. Kong 系列【六】添加插件---ip-restriction之黑白名单

    写在前边 本地postMan请求http://192.168.130.131:8000/test-route,可以正常访问,本地IP:192.168.130.1同样在虚拟机环境192.168.130. ...

  3. Electron+Vue – 基础学习(2): 项目打包成exe桌面应用

    项目创建完成,启动正常,接下来就是项目打包了.将测试Demo打包成exe桌面应用,点击exe文件,运行项目. 书接上文,创建项目有三种方式 Git拷贝.直接创建:通过electron社群提供的命令行工 ...

  4. Charles证书下载报Name lookup failed

    背景 1.charles https抓包需要在手机上安装证书. 2.近期疫情影响,通过openVPN远程办公. 问题现象 按照网上教程配置好charles proxy配置,证书安装的时候,iPhone ...

  5. 4~20MA 转 电压输出

    ICL7660  50mA LM2662/LM2663  200mA

  6. OSI七层协议大白话解读

    参考链接:https://www.cnblogs.com/zx125/p/11295985.html 国际标准化组织(ISO)制定了osi七层模型,iso规定了各种各样的协议,并且分了7层 应用层 应 ...

  7. SpringBoot 教程之 banner 定制

    目录   简介  变量  配置  编程  示例  参考资料 简介 Spring Boot 启动时默认会显示以下 LOGO: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ ...

  8. Can you answer these queries? HDU - 4027 有点坑

    #include<iostream> #include<cstring> #include<cstdio> #include<math.h> #incl ...

  9. SQL Server远程数据库操作(备份、还原等)

    · SQL Server远程数据库备份到本地: exp sauser/sapassword@192.168.8.233:1433/DBName file=d:/backup.dmp OWNER=sum ...

  10. F.Three pahs on a tree

    思路 两次bfs找出树的直径并处理出端点离树上各叶子节点的距离,在直径上找一点的子树叶子p3,使得dis(p1,p2) + dis(p2,p3) + dis(p1,p3)最大 易知上式是路径实长的两倍 ...