IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

Linux之ls目录处理命令

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

目录处理命令:ls

解释

命令名称:ls
命令英文原意:list
命令所在路径:/bin/ls
执行权限:所有用户
功能描述:显示目录文件

语法

ls 选项[-ald] [文件或目录]
    -a 显示所有文件,包括隐藏文件(all)
    -l 详细信息显示(long)
    -d 查看目录属性
    -i 查询文件的i节点号(系统通过i节点号查找文件)

ls

列出当前目录下的所有文件(没有隐藏的)

[root@izm5e2q95pbpe1hh0kkwoiz ~]# ls
lnmp-install.log  test

ls -a

[root@izm5e2q95pbpe1hh0kkwoiz ~]# ls -a
.              .bash_profile  .cshrc    lnmp-install.log  .npm               .pip              .tcshrc
..             .bashrc        .groovy   .m2               .nvm               .pki              test
.bash_history  .cache         .java     .mysql_history    .oracle_jre_usage  .pydistutils.cfg  .viminfo
.bash_logout   .config        .jenkins  .node-gyp         .pearrc            .ssh

ls -l

列出当前目录下所有的文件的详细信息

[root@izm5e2q95pbpe1hh0kkwoiz ~]# ls -l
total 3256
-rw-r--r-- 1 root root 3325328 Jun 28  2018 lnmp-install.log
-rw-r--r-- 1 root root      11 Nov 27 10:35 test

详细解释

# 读写权限
-rw-r--r--  
# 此文件被硬连接调用的次数
1   
# 文件所有者(user(所有者,只能有一个)/group(所属组,可以有多个,有权限)/other(其他人,没有权限))
root   
# 文件所属组
root    
# 文件大小,默认字节.
3325328     
# 文件最后一次被修改的时间,如果没有修改,则为创建时间
Jun 28  2018   
# 文件名
lnmp-install.log

第一个单独解释

-rw-r--r--
drwxr-xr-x
lrwxrwxrwx.

第一个代表文件类型
    - 二进制文件
    d 目录
    l 软连接文件

# 第一个示例解释
r 读权限
w 写权限
x 执行权限

rw- u所有者
r-- g所属组
r-- o其他人

第一个示例解释: 所有者有读写权限,所属组有读权限,其他人有读权限

ls -lh

列出文件详细信息,文件单位由系统判定显示,或显示K,或现实M

[root@izm5e2q95pbpe1hh0kkwoiz ~]# ls -lh
total 3.2M
-rw-r--r-- 1 root root 3.2M Jun 28  2018 lnmp-install.log
-rw-r--r-- 1 root root   11 Nov 27 10:35 test


解释

人性化显示,单位该显示什么就显示什么
感觉k可是就显示k
感觉M合适就显示M

ls -ld

查看目录的详细信息,而不是文件夹下的文件信息

[root@izm5e2q95pbpe1hh0kkwoiz ~]# ls -ld /etc
drwxr-xr-x. 80 root root 4096 Jul 30 16:38 /etc

ls -i

查询文件的i节点号

[root@izm5e2q95pbpe1hh0kkwoiz ~]# ls -i
136303 lnmp-install.log  145438 test

文章永久链接:https://tech.souyunku.com/?p=46370


Warning: A non-numeric value encountered in /data/wangzhan/tech.souyunku.com.wp/wp-content/themes/dux/functions-theme.php on line 1154
赞(85) 打赏



未经允许不得转载:搜云库技术团队 » Linux之ls目录处理命令

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码
IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

评论 抢沙发

大前端WP主题 更专业 更方便

联系我们联系我们

觉得文章有用就打赏一下文章作者

微信扫一扫打赏

微信扫一扫打赏


Fatal error: Uncaught Exception: Cache directory not writable. Comet Cache needs this directory please: `/data/wangzhan/tech.souyunku.com.wp/wp-content/cache/comet-cache/cache/https/tech-souyunku-com/index.q`. Set permissions to `755` or higher; `777` might be needed in some cases. in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php:367 Stack trace: #0 [internal function]: WebSharks\CometCache\Classes\AdvancedCache->outputBufferCallbackHandler() #1 /data/wangzhan/tech.souyunku.com.wp/wp-includes/functions.php(5109): ob_end_flush() #2 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(303): wp_ob_end_flush_all() #3 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /data/wangzhan/tech.souyunku.com.wp/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /data/wangzhan/tech.souyunku.com.wp/wp-includes/load.php(1097): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php on line 367