课程: Linux: Files and Permissions

今天就学习课程吧!

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

Creating files and dirs

Creating files and dirs

- It's difficult to use an operating system for very long before you need to create files and directories. We're going to start out creating directories and then move on to files. To create a directory or folder, we'll use the "mkdir" command. Type in "mkdir ~/newdir" and hit enter. And then verify by typing in "ls - l ~" and hit enter again. Tilde is the shortcut to your home directory. You can see the new "Dir" directory in the output. To keep this exercise contained, let's change into our new directory before making any more files or directories. Type in "cd ~/newdir/" and hit enter. If you see a trailing "slash" from a command line, it means I'm doing a shortcut and hitting my tab key, and the shell fills out the line for me. You can always double check your path by typing in "PWD" and hit enter. You can always double check your paths by typing in PWD which gives you the absolute path from the top level directory.…

内容