Page CMNDS-2UNIX: Fundamental UNIX Commands
Recursively lists all files, including those insub-directories from the current sub-directoryto all sub-directories below.
Lists all visible files and their file size inblocks.
Command for a full directory listing (allattributes).
This command is used to create a new directory within the current directory.
command (print working directory) allows you to determine the pathname of the directory in which you are presently working.
(remove directory) command is used to delete a directory. You canonly delete an empty directory.
" command allows you to browse your files in a manner very similarto the way that "
" browses files. "
" is only available on systems thathave
installed on them. "
" will allow a user to list, delete, edit, andview files as well as move in and out of directories.Access permissions fall into two categories, base permissions that exist on mostUNIX systems, and extended permissions, available on most POSIX based systemssuch as AIX. This section addresses those forms for setting permissions.
Systems using AFS (Andrew File System) and DFS (Distributed FileSystem)
use base permissions except for the user level only, groupand other permissions must be set through extended permissions.
A.BASE PERMISSIONS (ALL SYSTEMS)
Base permissions are set via the "
" command as in the followingexamples:
Allows the owner of a file or directory to change the access permissions.Use of pneumonics is preferred over the octal numbers as pneumonics areadditive and subtractive, octal numbers are absolute and may changesomething that you didn't want to.
chmod go-rwx filename<CR>chmod 600 filename<CR>
Makes a file private.
chmod a+r filename<CR>chmod 644 filename<CR>
Makes a file public in read mode.
chmod go-rwx,u-wx+r filename<CR>chmod 400 filename<CR>
Makes a file private and protects it fromaccidental change/deletion.
CHANGING FILE ACCESS PERMISSIONS