Slide 5 of 91
Notes:
- can contain up to 256 characters, except when the file is under an MPE group
or account, then 16 characters is the limit
- can be any combination of:
- special character + - _ .
- case matters - file1, FILE1, File1, fILE1 are different files
Creating and listing files
> cat >file1 Enter/Return to end each line, CTRL-Y to finish
> ls Files starting with . (dot) are hidden and not normally listed, use ls -a
Viewing and printing a file:
Copying, renaming, and removing files
> cp file1 file2 If file2 exists, it is overwritten.
> mv file1 file2 If file2 exists, it is overwritten.
Displaying and Changing a File’s Permissions and Ownership
Display a file’s permissions:
-rw-r--r-- 1 CGI.APACHE APACHE 57 Feb 2 19:26 file1
-rw-r--r-- 1 CGI.APACHE APACHE 57 Feb 2 19:26 file2
Change a file’s permissions:
Change a file’s ownership: