zipinfo命令用来列出压缩文件信息。执行zipinfo指令可得知zip压缩文件的详细信息。语法zipinfo(选项)(参数)选项-1:只列出文件名称;-2:此参数的效果和指定“-1”参数类似,但可搭配“-h”,“-t”和“-z”参数使用;-h:只列出压......
admin 2023-10-10
du-ah--max-depth=1 这个是我想要的结果 a表示显示目录下所有的文件和文件夹(不含子目录),h表示以人类能看懂的方式,max-depth表示目录的深度。du -sh 目录 #查看目录的大小du -sh 文件 #查看文件大小du命令用来查看目录或文件所......
admin 2023-10-14
Unix/Linux编程实践教程在尝试编写系统命令之前,学会以下4项技巧会有助于你的学习:阅读联机帮助搜索联机帮助阅读 .h 文件从参阅部分(SEE ALSO)得到启示一、编写who命令参考资料:Unix/Linux编程实践教程(第2章)man 文档(who、ut......
admin 2023-10-14
linux bzip2recover 命令详解功能说明:用来修复损坏的.bz2文件。语 法:bzip2recover [.bz2 压缩文件]补充说明:bzip2是以区块的方式来压缩文件,每个区块视为独立的单位。因此,当某一区块损坏时,便可利用bzip2recover,试着将文件......
admin 2023-10-14
halt指令用来关闭系统,然后再通知内核是停止、重启、还是关闭电源。必要参数具体说明如下:-d 不在wtmp中记录-f 强制关机或者重启,不调用shutdown-h 让硬件保持standby的状态-i 关闭系统前先关闭网络系统-n 不执行sync-p halt后执......
admin 2023-10-14
文章浏览阅读1.4k次。当用adb shell进入Android系统后,即可输入linux命令,下面就对一些Andriod常用的linux命令进行汇总!1.目录与文件pwd查看当前完整路径natrium:/sdcard/MOVIES $ pwd/sdcard/MOVIESls列出当前目录的所有文件natrium:/sdcard/MOVIES $ ls......
admin 2024-01-24
dir命令和ls命令功能类似,用以查看目录、文件权限等详细信息.yexiang@ubuntu:<gcc-arm-none-eabi>$ dir /home/yexiang/yx_workspace_test/go jni linux_modulesyexiang@ubuntu:<gcc-arm-none-eabi>$ dir /home/yexiang/yx......
admin 2023-10-10
一、loop 设备介绍1、 在类 UNIX 系统里,loop设备是一种伪设备(pseudo-device),或者也可以说是仿真设备。它能使我们像块设备一样访问一个文件。在使用之前,一个 loop设备必须要和一个文件进行连接。这种结合方式给用户提供了......
admin 2023-10-14
文章浏览阅读2.4k次。入门概述Linux 简介Linux 内核最初只是由芬兰人==林纳斯·托瓦兹(Linus Torvalds)==在赫尔辛基大学上学时出于个人爱好而编写的。Linux 是一套免费使用和自由传播的类 Unix 操作系统,是一个基于 POSIX(可移植操......
admin 2023-11-12
文章浏览阅读3.4k次。今天被面试到linux中怎么查看大文件中的某几行,被问倒了。整理下。vi (vim)文件名-----#编辑方式查看,可修改 cat 文件名--------#显示全部文件内容 more 文件名-------#分页显示......
admin 2024-01-24
comm命令可以用于两个排序好的文件之间的比较,它有一些选项可以用来调整输出,以便执行交集、求差、以及差集操作。输出有3列:第一列是file1独有的、第二列是file2独有的,第三列是两者都有的交集:打印出两个文件所共有......
admin 2023-10-10
mount功能:加载指定的文件系 统;mount可将指定设备中指定的文件系统加载到 Linux目录下(也就是装载点)。可将经常使用的设备写入文件/etc/fastab,以使系 统在每次启动时自动加载。mount加载设备的信息记录在/etc/mtab文件中。使......
admin 2023-10-10
unzip命令用于解压缩由zip命令压缩的“.zip”压缩包。语法unzip(选项)(参数)选项-c:将解压缩的结果显示到屏幕上,并对字符做适当的转换;-f:更新现有的文件;-l:显示压缩文件内所包含的文件;-p:与-c参数类似,会将解压缩......
admin 2023-10-10
我使用过的Linux命令之tee - 重定向输出到多个文件本文链接:http://codingstandards.iteye.com/blog/833695 (转载请注明链接) 用途说明在执行Linux命令时,我们可以把输出重定向到文件中,比如 ls >a.txt,这时我们就不能看到输出了......
admin 2023-10-14
Linux 系统中 wc(Word Count)命令的功能为统计指定文件中的行数、字数、字节数,并将统计结果显示输出。1、命令格式wc [options] 文件...2、命令功能统计指定文件中的字节数、字数、行数,并将统计结果显示输出。该命令统计指......
admin 2023-10-14
linux中的top命令详解引言top命令是UNIX/Linux系统中,用于查看系统详情的第一入口,一般我们查看机器运行状态的时候,总是第一个使用top命令,而实际上top命令展示的数据很多,对于新手来说这些其实并不友好。本文主要的目的......
admin 2023-10-14
文章浏览阅读3.3k次,点赞3次,收藏9次。1. 要点主要涉及工具 tzselect、timedatectl。涉及文件/etc/localtime,这是一个软连接文件。tzselect 只是帮我们把选择的时区显示出来,并不会实际生效,他仅仅告诉我们怎么样去设置环境变量TZ......
admin 2024-01-25
友情链接申请要求: 不违法不降权 权重相当 请联系QQ:737597453