#!/bin/shfunctionresult(){if[$1-eq0]thenecho"$2..............................................sucess"elseecho"$2..............................................fail,pleasecheckcarefully!&q
第一章:shell基础●umask--查看当前用户创建文件或文件夹时的默认权限eg:[test@szbirdora1]$umask0002[test@szbirdora1]$ls-lh-rw-rw-r--testtestmyfiledrwxrwxr-xtesttest1上面的例子中我们看到由test默认创建的文件myfile和文件夹1的权限分别为664,775.而通过umask查到的默认权限为00
Generally it can be used for opening and files in shall like open statement in Perl. The following examples illustrate the use of exec for manipulating file descriptors:exec 3< inputfile
shell脚本总结
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号