课程: Ubuntu Linux: Essential Commands
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Finding files
- [Narrator] It's pretty easy to keep track of files that you've created, especially in your Home folder, but if you do need to find a file somewhere else on the system, there's a tool you can use called Find. We can look for files by many criteria including name, size, date, and type. In order to have something to find here in our Home directory, let's create a few a files. I'll use touch to create a couple of files with different names. All right, "touch apple pineapple" "lemon" and "pear." I'll use the truncate command to create files that have different sizes. "Truncate -s" for size "1MB" for one megabyte, and I'll call that one "file1." I'll press up to recall my previous command and change this to "10MB" and "file2," and "100MB," and "file3." Let's take a look at those, and here they are. These files that I created with truncate have no information in them. They're just defined to take up a certain amount of space. Here's the other empty files that I created with the Touch…
内容
-
-
-
-
(已锁定)
Files on Linux10 分钟 27 秒
-
(已锁定)
Text files8 分钟 52 秒
-
(已锁定)
Work with files and directories10 分钟 16 秒
-
File links7 分钟 27 秒
-
(已锁定)
Finding files4 分钟 40 秒
-
(已锁定)
Input/output redirection6 分钟 18 秒
-
(已锁定)
Compare text files4 分钟 43 秒
-
(已锁定)
Compare non-text files3 分钟 20 秒
-
(已锁定)
Compress and decompress files9 分钟 12 秒
-
(已锁定)
Explore regular expressions3 分钟 36 秒
-
(已锁定)
Change files programmatically4 分钟 42 秒
-
(已锁定)
-
-