Ubuntu install and tips

This project is maintained by nicolas-brousse

← Go home

Generic and useful commands

List crontab content of all user:

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

DNS

Network

Mysql

PostgreSQL

Users/groups

Get data from an other server

Run this command from on new server.
ssh remote.srv.tld "cd /data/;tar zcf - files" | tar zxf -
This command recursively copies /data/files from remote.srv.tld to local server a lot faster on slow network.

Source

Regular synchronization

# --delete: remove files they are in remote but not in source

# r: recursive
# a: archive
# z: compression
# e: protocol `ssh`

# source destination

rsync --delete -raze "ssh" remote.server.tld:/path/to/rsync/ /path/to/rsync/

Disk and sizes

Others

Tools


← Go home