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.

Options<br />

Exit Status<br />

Related Information<br />

Examples<br />

By default ln makes hard links. A hard link to a file is indistinguishable from the<br />

original directory entry; any changes to a file are effective independent of the name<br />

used to reference the file. Hard links may not normally refer to directories and may<br />

not span file systems.<br />

A symbolic link contains the name of the file to which it is linked. Symbolic links<br />

may span file systems and may refer to directories.<br />

Given one or two arguments, ln creates a link to an existing file source_file. If<br />

target_file is given, the link has that name. Target_file may also be a directory in<br />

which to place the link. Otherwise it is placed in the current directory. If only the<br />

directory is specified, the link will be made to the last component of source_file.<br />

Given more than two arguments, ln makes links in target_dir to all the named<br />

source files. The links made will have the same name as the files being linked to.<br />

-f Unlink any already existing file, permitting the link to occur.<br />

-s Create a symbolic link.<br />

v 0 when success<br />

v >0 when an error occurs<br />

v cp - Copy files<br />

v ls - List directory contents<br />

v mv - Move files<br />

v rm - Remove directory entries<br />

v rmdir - Remove directories<br />

1. Create a symbolic link from the file, “/usr/bin/perl5” to the file “/usr/bin/perl”.<br />

ln -s /usr/bin/perl5 /usr/bin/perl<br />

2. Create a new link from the file “/usr/bin/<strong>qsh</strong>” to the file “/bin/<strong>qsh</strong>” and unlink the<br />

file “/bin/<strong>qsh</strong>” if it exists.<br />

ln -f /usr/bin/<strong>qsh</strong> /bin/<strong>qsh</strong><br />

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

ls - List directory contents<br />

Synopsis<br />

ls [-ACFLRTacdfiloqrstu1] [file ...]<br />

Chapter 4. Utilities 59

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

Saved successfully!

Ooh no, something went wrong!