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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Description<br />

Options<br />

Exit Status<br />

Related Information<br />

Examples<br />

mv - Move files<br />

Synopsis<br />

Description<br />

The mkdir utility creates the directories named as operands, in the order specified,<br />

using mode rwxrwxrwx (0777) as modified by the current file creation mask.<br />

The user must have write permission in the parent directory.<br />

-m Set the file permission bits of the final created directory to the specified<br />

mode. The mode argument can be in any of the formats specified to the<br />

chmod command. If a symbolic mode is specified, the operation characters<br />

+ and - are interpreted relative to an initial mode of “a=rwx”.<br />

-p Create intermediate directories as required. If this option is not specified,<br />

the full path prefix of each operand must already exist. Intermediate<br />

directories are created with permission bits of rwxrwxrwx (0777) as modified<br />

by the current file creation mask, plus write and search permission for the<br />

owner.<br />

v 0 if successful<br />

v >0 if an error occurred.<br />

v chmod - Change file modes (permissions)<br />

v rmdir - Remove directories<br />

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

1. Create the directories “new”, “java”, “test”, “dir”, “4” and “bob” and set the mode<br />

to read, write and execute for owner.<br />

mkdir -p -m 700 /new/java/test/dir/4/bob<br />

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

mv [-f | -i] source target<br />

mv [-f | -i] source ... source directory<br />

In its first form, the mv utility renames the file named by the source operand to the<br />

destination path named by the target operand. This form is assumed when the last<br />

operand does not name an already existing directory.<br />

Chapter 4. Utilities 63

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

Saved successfully!

Ooh no, something went wrong!