课程: Ubuntu Linux: Essential Commands

今天就学习课程吧!

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

Work with files and directories

Work with files and directories

- [Instructor] Working with files and directories is an important part of administering a Linux system. Let's take a look at how to create, move, copy and delete files and directories. Let's start out with the basics by creating a file here at the command line. The simplest thing we can do to create a file is to use the touch command which creates an empty file with a given name. I'll write 'touch myfile'. And then in order to see that file, we can use the ls command, which remember, is short for list, to list the files in the directory. The files that I see here are inside of my home folder or home directory. I know I'm in my home directory because unless it's been configured otherwise, that's where terminal window opens up. And I can see that on my prompt, I have a tilde representing my home directory. To check though I can type pwd to print the working directory. In this case, working means the directory you're making changes within. To change to a different directory I can use the…

内容