See active TCP connections:
- netstat -n -A inet -t
Example for bash shell.
Gives you something like:
Set date/time with this timestamp:
date +%s -s "@1384261338"
grub-install --recheck /dev/sdX
As a normal security precaution you would restrict your FTP users to their home directories with “DefaultRoot ~”.
But then you face a problem – how to follow symlinks to other parts of your file system.
The answer: mount them with the “bind” option!
For example, inside your user’s home directory do this:
- mount –bind /media/sdb2/mydocs/archive /home/username/archive
Of course you have to check and adjust the file permissions as needed after that.
This is how you copy part of your existing image to a new image:
convert old.png -crop 200x200+100+100 new.png
You can do it with a batch of images in a directory:
- for i in *.png; do convert $i -crop 200×200+100+100 new_$i; done
You connect your brand new 3 TB external USB HDD to your Linux Ubuntu [derivative] PC, you run the standard disk utility and it fails with a message:
“Error creating partition table: timeout (10s) waiting for change”
Well, the reason is very simple – not all software yet is working well or at all with those new large capacity drives over 2.2 TB in size. No reason to worry. Just get a decent tool, e.g. GParted.
sudo apt-get install gparted
Then run it…