tailieunhanh - Unix for mac your visual blueprint to maximizing the foundation of mac osx phần 6

Tạo một thư mục cho các kịch bản lưu trữ, chẳng hạn như ~ / Library / OSAscript. ¤ Tạo một kịch bản trong thư mục có tên là , có chứa những điều sau đây: osascript-e 'cho ứng dụng hiện tại để nói "New Dir' $ CWD '"' | SYSTEM ADMINISTRATION COMMANDS 11 stored in a separate location from the file itself. You affect this metadata when you change ownership or the permissions associated with a file. Metadata is stored in a file system structure known as an inode. You see metadata every time you list file information using the Is -l command. You can list files with the numbers of the inodes that are associated with these files by using the -i option instead. It is sometimes useful to know which inodes are being used. For example two files in the same file system with the same inode refer to the same content. When you change the group and ownership of a file you do not affect the contents of the file in any way. Information about a file referred to as metadata is TYPE THIS ferro user Is -i RESULT 139742 140953 143416 140093 141835 140095 CHANGE THE OWNER AND GROUP OF A FILE é Terminal File Edit Scrollback Font Window Help rtypl ferro sudo chgrp -R adrtrin bin l 0 ferro - user xr CHANGE THE GROUP OF AN ENTIRE DIRECTORY -n Type sudo chown followed by a space. L B Type the name of a user on your system followed by a colon . H Type the name of a group on your system followed by a space then type the name of a file and press Return. - Type Is -l followed by a space the name of the file and then press Return. The file now has a new owner and group. - Type sudo chgrp followed by a space. L H Type -R followed by a space. H Type the name of a group on your system followed by a space. - Type the name of a directory and press Return. All the files in the directory now have a new owner and group. 167 UNIX FOR MAC CREATE SYMBOLIC LINKS You can simplify the navigation of your file system by creating symbolic links. A symbolic link is a special file that acts as a pointer or shortcut to another file or directory at another location in the system. By creating a symbolic link to a directory with a long or difficult .

TỪ KHÓA LIÊN QUAN