Extract Multiple Files at Once
Unzip all zip files in current directory: Extract all tar.xz files in current directory:
very very slowly
Unzip all zip files in current directory: Extract all tar.xz files in current directory:
Most commonly used List command is: Example output: d rw-rw-r– 1 piroman piroman 65379 oct 12 11:11 z9a6t8j0qis51.jpg type permissions link count owner group size date time name LS options/switches: ls -a list all files including hidden file starting with ‘.’ ls –color colored list [=always/never/auto] ls -d list directories – with ‘ */’ ls … Read moreLS (List) command
Sets Access Control Lists (ACLs) – adds permissions to files and directories for a user that is not a member of a group owning them. Install ACL tools Gives a read permission to user for target directory and sub directories and files, although the target directory is owned by another user: By adding wx parameters, … Read moresetfacl – Set File Access Control List
SCP uses SSH credentials to copy files and directories between 2 computers. It can be used to copy: From your local computer to a remote computer From a remote computer to your local computer Between two remote computers from your local computer The colon : sign is used to distinguish remote computer. SCP overwrites files … Read moreSCP (Secure CoPy)
DU (Disk Usage) command Lists directories with sizes in human readable format (Gb,Mb): Or you can show sizes of entire directory sub tree: Deletes directory and all files in it without prompting:
Changes the owner of all sub-directories and files in target directory: Changes permissions of all sub-directories and files in target directory:
Create archive from directory or a single file: tar -czvf archive.name.tar.gz /target.dir Extracts archive: tar xzvf archive.name.tar.gz Extracts archive in target directory: tar xzvf archive.name.tar.gz -C /target.dir