君小二外链推广论坛-可以免费发外链的推广论坛

 找回密码
 立即注册
作用:吸引蜘蛛、加速快照更新、做网站反链,提升网站排名
适用人群:个人站长,推广人员,外链专员
君小二外链发布论坛
查看: 370|回复: 0

If you want to know the remaining disk space capacity of your hard disk

[复制链接]


1

主题

1

帖子

4

积分

帝国新兵

Rank: 1

积分
4
发表于 2023-3-29 14:23:52 | 显示全部楼层 |阅读模式
Here's how: grep 'word you want to search' 'file to browse' For example, suppose you want to find the word “photosynthesis” in the file “biologi.txt”. Then, you can type the following command: grep photosynthesis biologi.txt As a result, you will see a line containing the word “photosynthesis” in the file. 16. du Do you want to know how much disk space is already occupied in a directory? You can get the answer via the du command . Here's how to use it: du -h directory name For example, suppose you want to know the total size ( size ) of content in the /home/user/downloads directory, then you would type: du -h /home/user/downloads .

You only need to type the df command . The results will be displayed in kilobytes. However, if you want to view it in megabytes, you can write df -m . 18. diff This basic Linux command is very useful Uk Phone Number List for programmers. Because, the diff command can be used to compare the content in two different files. That way, the programmer can check whether there is a different code in the two files. For example, suppose they want to know if there are any code differences in file1.txt and file2.txt . They only need to type in the following command: diff file1.txt file2.txt 19. heads This command is used to display the first ten lines of text in a file.



For example, suppose you wanted to see the first ten lines in the file revision1.txt , then you would write: head revision1.txt However, you can also set the number of rows displayed. You do this by adding the "-n number of lines" component in the middle of the command. So if you want to see just three lines, you can type: head -n 3 revision1.txt 20. tails Tail is the opposite of head. Because this command will display the last ten lines of text in a file. So, if you want to see the last ten lines of the revision2.txt file , you just have to type: tail revision2.txt And if you want to see only the last three lines, you can write: tail -n 3 revision2.txt 21. tar The tar command is more or less functional like WinRar or 7Zip.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


手机访问本页请
扫描左边二维码
     本网站声明
本网站所有内容为网友上传,若存在版权问题或是相关责任请联系站长!
站长电话:0717-4343555    客服联系QQ:357278810   
     客服微信:longel
请扫描右边二维码
bbs.junxiaoer.com

Archiver|手机版|小黑屋|君小二外链发布论坛

GMT+8, 2025-3-13 06:11 , Processed in 1.812688 second(s), 26 queries .

Powered by 君小二外链 X3.4 网站地图

Copyright © 2001-2022, 发布软文带外链论坛

快速回复 返回顶部 返回列表