linux ls命令的搞笑回忆

由于我是硬件出身,所以以前对linux什么的也不太了解。

后来去了第二家公司实习,看到别人敲命令ls, 觉得好新鲜。打开一个黑黑的窗口,敲入ls命令,显示好多东西,从此,我学会了ls命令。

挺搞笑,权当回忆。来看看linux ls命令的用法吧:

ubuntu@VM-0-15-ubuntu:~$ man ls
LS(1)                                         User Commands                                         LS(1)

NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List  information about the FILEs (the current directory by default).  Sort entries alphabetically
       if none of -cftuvSUX nor --sort is specified.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --all
              do not ignore entries starting with .

       -A, --almost-all
              do not list implied . and ..

       --author
              with -l, print the author of each file

       -b, --escape
              print C-style escapes for nongraphic characters

       --block-size=SIZE
              scale sizes by SIZE before printing them; e.g., '--block-size=M' prints sizes in  units  of
              1,048,576 bytes; see SIZE format below

       -B, --ignore-backups
              do not list implied entries ending with ~

       -c     with  -lt: sort by, and show, ctime (time of last modification of file status information);
 Manual page ls(1) line 1 (press h for help or q to quit)

其实,有更多其他选项,简单得很。

也顺便记录一下自己曾经很挫的经历。

不多说。

      

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值