课程: Ubuntu Linux: Essential Commands

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Finding files

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…

内容