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:
Screen tool is very useful if you need to disconnect from remote server, or you have a shaky connection that tends to drop but the started process on remote server needs to continue. You can reconnect later and any process started in screen session continues while you are disconnected. You are able to resume that … Read moreScreen
First start screen as it starts a new shell: You can now disconnect from that ssh session, as the processes in that screen shell continues to work. Reconnect to screen shell by establishing new ssh connection and typing: this reestablishes screen shell and you can continue your work where you stopped when disconnected.
After you manually add new files to your Nextcloud disk, this procedure forces the rescan of files and adds them to the Nextcloud dabase:
Username must be unique! This command performs: Edits /etc/passwd /etc/shadow /etc/group and /etc/gshadow files for the newly created user Creates and populates a home directory for the new user Sets permissions and ownerships of the home directory After the new user is created, you should make a password for that user:
Displays available disk space in human readable format: Or you can target a specific disk:
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)
Check if there is already a public authentication key on local computer, this first step is important because if you override existing public authentication key, you will not be able to password-less login to previously set remote computers: If you already have public authentication key you can use it for password-less login but if there’s … Read morePassword-less SSH Login