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 />

Related Information<br />

Examples<br />

v 0 on success<br />

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

v head - Copy the first part of files<br />

v tail - Copy the last part of a file<br />

1. Display the contents of file, “myfile”.<br />

cat myfile<br />

2. Display the contents of three different files at the same time and save their<br />

contents into a new file.<br />

cat file1 file2 file3 > all.files<br />

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

cd - Change working directory<br />

Synopsis<br />

Description<br />

Options<br />

Operands<br />

cd[ directory ]<br />

You can use cd to change the working directory. <strong>qsh</strong> sets the PWD variable to the<br />

new working directory and the OLDPWD variable to the previous working directory.<br />

None.<br />

For directory, you can specify:<br />

v - (minus)<br />

<strong>qsh</strong> changes the working directory to the previous directory and displays the new<br />

working directory name.<br />

v /name or ../name<br />

<strong>qsh</strong> changes the working directory to the specified name.<br />

v name (does not begin with a/or../)<br />

If the CDPATH variable is set, <strong>qsh</strong> prepends each directory in CDPATH to name<br />

to construct a directory name. <strong>qsh</strong> changes to the first directory that you have<br />

permission to. <strong>qsh</strong> displays the new working directory name.<br />

If the CDPATH variable is not set, <strong>qsh</strong> changes the working directory to the<br />

specified name.<br />

v not specified<br />

Chapter 4. Utilities 45

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

Saved successfully!

Ooh no, something went wrong!