The Missing Semester
- I’m a beginner int linux, that’s a curriculum I first learned about linux
Detail for Liunx shell
1 |
|
First,the d at the beginning of the line tell us that anfsity is a directory.Then follow three groups of three characters(rwx).These indicate what permissions the owner of the file (anfsity),the owning group (users),and everyone else respectively have on the relevant item.A “-” indicates that the given principal does not have the given permission.Above, only the owner is allowed to modfiy (w) the anfsity directory.(i.e., add/remove files in it).To enter a directory, a user must have “search” (represented by “execute”: x) permissions on that directory (and its parents). To list its contents, a user must have read (r) permissions on that directory. For files, the permissions are as you would expect. Notice that nearly all the files in /bin have the x permission set for the last group, “everyone else”, so that anyone can execute those programs.
Some other handy programs to know about at this point are mv (to rename/move a file),cp (to copy a file), and mkdir (to make a new directory).
If you ever want more information about a program’s arguments, inputs, outputs, or how it works in general, give the man program a try. It takes as an argument the name of a program, and shows you its manual page. Press q to exit.
1 |
|
找到一个中文版的教程,贴在这里
link