Shared Flashcard Set

Details

Unix File commands
Commands that access / manipulate various file or file system features
12
Computer Science
Professional
07/04/2012

Additional Computer Science Flashcards

 


 

Cards

Term
chmod
Definition

Set file permission mode

  • relative permissions: ugo+rwx
  • absolute permission: 777
  • 4 - Read
  • 2- Write
  • 1 - Execute

(-R recursive)

Term
chown
Definition

Set ownership user and/or group attributes of a file or directory

 

chown user:group file

(-R recursively affect a directory)

Term
lsattr
Definition

view attributes of files or directories

 

Attributes are invisible fields which determine how the file will be treated during writing and reading.

Some of the attributes are whether the file must be deleted securely when it is deleted, whether it should be compressed at the file system level, should not be backed up (no dump), etc.,

Term
chattr
Definition

change file attributes

 

Some of the attributes are whether the file must be deleted securely when it is deleted, whether it should be compressed at the file system level, should not be backed up (no dump), etc.,

Term
mount / umount
Definition
mount / unmount a real file system on a mount-point (directory) in the virtual file system
Term
mkfs.*
Definition
create a real file system on a device which can be mounted
Term
fsck.*
Definition

File System Check

Check a real file system for inconsistencies

Term
find
Definition

recursively traverse a directory structure

  • can shortlist files / directories by various criteria
  • can execute a program with the matched filename as argument ( find . -exec cat '{}' ';' )
Term
mknod
Definition

create a device special file

 

can create a block device file or a character device file

 

Term
mkfifo
Definition

create a named pipe

 

 

Term
df
Definition

disk free.

lists how much each mounted file systems are free

data is obtained from the file system (not computed from individual files in the file system)

 

Term
du
Definition

disk space usage

finds out the size used by given files or directories

 

Supporting users have an ad free experience!