FSTAB
Edit fstab: Mount disk: Different partitions types: ext4, ext2, ext3, reiserfs, xfs, jfs, smbfs, iso9660, vfat, ntfs, swap, auto Mount nfs share: Mount samba share: share.name NOT dir.name! “Reloads” fstab for changes to take effect:
very very slowly
Edit fstab: Mount disk: Different partitions types: ext4, ext2, ext3, reiserfs, xfs, jfs, smbfs, iso9660, vfat, ntfs, swap, auto Mount nfs share: Mount samba share: share.name NOT dir.name! “Reloads” fstab for changes to take effect:
Login: List databases: Delete database: Make new database: List users: Make new user: Delete user: Gives all rights to user over a certain database (replace database.name with * for all databases): Refreshes privileges, a must after a change: Lists user rights: Exports (dumps) the database: Shows original (exported) database name: Imports dump of some database … Read moreMYSQL
Copies files from a source to destination. Syncs directories without copying already existing files and updating modified files. Works over SSH. remote -> local: local -> local: local -> remote: Options/flags: -a equals to use of following options -rlptgoD (basically -a options makes rsync a fully fledged backup tool) –delete deletes files from the destination … Read moreRsync
Crontab is a file containing instructions for the cron daemon. It is a job scheduler where you add commands to be executed at defined periods. Edit existing crontab file, or make new one if it doesn’t exist: List of cronjobs , display crontab file contents: Reload crontab: (not necessary since the system will check periodically … Read moreCrontab
Lists available network interfaces: More options for listing available network interfaces:
To move a certain number of files, this command must be executed from the source or parent directory: xxx – the number of files to be moved
To count files recursevly (in all sub dirs):
Install Fdupes: Search for duplicate files in directory: Recursive search in all sub-directories: Delete duplicate files in directory: Recursively delete duplicate files in all sub-directories:
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