29.06.2013 Views

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Exit Status<br />

Examples<br />

v 0 on success<br />

v >0 if an error occurs<br />

1. Change the time-date stamp of the file myfile to match the time-date stamp of<br />

the file yourfile.<br />

touch -r yourfile myfile<br />

2. Change the time-date stamp of the file myfile to a specific time-date stamp.<br />

touch -t 200001010000.00 myfile<br />

[ Legal | AS/400 Glossary ]<br />

umask - Get or set the file mode creation mask<br />

Synopsis<br />

Description<br />

Options<br />

Operands<br />

72 <strong>Qshell</strong> <strong>Interpreter</strong> (<strong>qsh</strong>)<br />

umask [ -S][ mask ]<br />

You can use umask to set or display the file creation mask. The mask allows you to<br />

control the file permission bits that are set when creating a file or directory.<br />

If you specify mask, <strong>qsh</strong> sets the file creation mask to mask. If you do not specify<br />

mask, <strong>qsh</strong> displays the current file creation mask on standard output.<br />

v -S Use symbolic permissions.<br />

When using symbolic permissions, mask is an expression that defines which<br />

permissions should not be removed. A symbolic permission is an expression with<br />

the format [ who ] op [ permission ] where:<br />

v who is a combination of the letters:<br />

– u for owner permissions.<br />

– g for group permissions<br />

– o for other (or public) permissions<br />

– a for all permissions (the default value).<br />

v op is one of the following:<br />

– - (minus) to delete the permission.<br />

– + (plus) to add the permission.<br />

v permission is one or more of the following:<br />

– r for read permission.<br />

– w for write permission.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!