`

ubuntu ls command

 
阅读更多

ls 列出文件 返回目录 下一课

 ls 命令可以查看当前文件夹中的文件,类似的也可以用 dir 命令;

 1、ls 命令

 1)打开终端窗口,显示当前为主文件夹;

 

 2)输入命令 ls 然后按回车,这是查看主文件夹 里的内容;

 a2ls.png

 不同颜色代表不同的类型,普通文件是灰色,文件夹是紫色,可执行文件是绿色;

 3)再输入 ls -l 后面是空格、短线小写的 L,用来显示详细信息,包括日期、大小、权限、所有者等;

 a3-l.png

 

 4)输入 ls -a 这会显示隐藏文件,即文件名是以 . 点开头的文件,这些文件或文件夹平时是不显示的;

 a4-a.png

 

 5)查看当前文件夹和子文件夹中的,所有 txt 类型的文件,也就是文件扩展名是 .txt 的文件,输入命令 ls **/*.txt

 a5tpf.png

 

 6)其他用法,可以输入 ls --help 命令,查看更多详细的介绍;

分享到:
评论

相关推荐

    8-07-14_MegaCLI for linux_windows

    LSIP200232954 (DFCT) Need to Support all the MFC default values in the command AdpSettings. LSIP200245968 (DFCT) In EFICLI not able to flash latest firmware to controller without using -nosigchk -...

    2.0_Linux常用命令.txt

    ==========Linux command List ============= 1. man 对你熟悉或不熟悉的命令提供帮助解释 eg:man ls 就可以查看ls相关的用法ls //注:按q键或者ctrl+c退出,在linux下可以使用ctrl+c终止当前程序运行。 //注意在...

    (详细)解决Win10 Ubuntu18.04虚拟机下ifconfig无法安装,install net-tools不能用

    Win10 Ubuntu18.04 环境下ifconfig服务没有安装,出现类似 Commend ‘xxxxxx’ not found,but can be installed with…… 错误 ~$ ifconfig 一些解决方法(我通过方法四问题得以解决) 方法一: ~$ sudo apt ...

    docker-compose运行python web服务相关资源

    root@ubuntu:~/docker/dockerfile# ls Django-1.8.3.tar.gz docker-compose.yml Dockerfile Dockerfile.bak ops ops.tar.gz root@ubuntu:~/docker/dockerfile# cd ops root@ubuntu:~/docker/dockerfile/ops# ls db....

    dropbox-api-command:用于访问Dropbox API的命令行界面

    ls 找 杜 同步 cp MV R M 麦克迪尔 得到 放 安装与设定 1.安装 1-a)FreeBSD pkg install dropbox-api-command 1-b)Ubuntu sudo apt-get install make gcc libssl-dev wget wget ...

    安卓毕业设计a源码网站-command-line-book:TheLinuxCommandLine学习笔记

    Command Line Book》学习笔记 Learning The Shell 初试Shell 命令行打开快捷键: me@ubuntu16.04:~$ 以上格式含义为:用户名@电脑名:当前文件夹和$。 如果不是$,而是以 “#”结尾表示为超级用户权限。 导航: <Up>...

    cp201x资源启动程序

    Install driver for USB-UART bridge converter on Linux Ubuntu12.04 Ubuntu下USB转串口芯片驱动程序安装,支持cp210x,pl2303等 Reference: Fixing the cp210x open - Unable to enable UART Error When you ...

    /bin/sh: python: not found 问题的解决

    ls -l /usr/bin/python* 然后会出现: lrwxrwxrwx 1 root root 9 3月 16 09:09 /usr/bin/python3 -> python3.6 -rwxr-xr-x 1 root root 4526456 11月 7 18:44 /usr/bin/python3.6 -rwxr-xr-x 1 root root 4526456 ...

    aliasme:用于在命令行中存储命令的Shell脚本

    别名 一个shell脚本,用于在命令行中组织您的别名。 安装 下载脚本 mkdir ~ /.aliasme ...$ al add [name] [command] # add alias command with name $ al rm [name] # remove alias by name $ al ls

    vmtools-linux.iso

    [root@rd01 ~]# ls -a [root@rd01 ~]# cp VMwareTools-5.5.1-19175.tar.gz /tmp [root@rd01 ~]# cd /tmp [root@rd01 ~]# tar zxpf VMwareTools-5.5.1-19175.tar.gz [root@rd01 ~]# cd vmware-tools-distrib [root@rd...

    Gametron-RevProxy:使用Nginx作为反向代理安装Gametron的文档

    安装完成后,运行sudo docker container ls以获取运行中的容器,输出将类似于以下内容: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS 6e791132ad88 gametron/master:latest "/bin/bash ./docker/…" 15 hours...

    alien_8.79.tar.gz

    -v, --verbose Display each command alien runs. --veryverbose Be verbose, and also display output of run commands. -k, --keep-version Do not change version of generated package. --bump=number ...

    linux.chm文档

    10}t${Package}n' | sort -k1,1n 以大小为依据显示已安装的deb包所使用的空间 (ubuntu, debian类系统) 返回顶部索引 ^ 用户和群组 groupadd group_name 创建一个新用户组 groupdel group_name 删除一个用户组 ...

Global site tag (gtag.js) - Google Analytics