If you want to do some download speed test, you can create a dummy file which have specific file size. To create an empty file with size you want type this command:
dd if=/dev/zero of=10mb-file.bin bs=1024k count=10
The command above will create a 10 MB sized file. If you want to create another file with different size, change the number after “count=”. Any number given after “count=” will be multiplied by 1024k or 1MB.
If you have more than one server and want to transfer files between the two, you can use SCP (Secure Copy). Here is how to do it:
$ scp /folder/file-to-tranfer firstname.lastname@example.org:/folder/file-destination-name
SCP then will ask the password for username on the remote host that already specified, insert the username and press enter. Wait until the transfer finished and your file will be copied to the destination server.
Continue reading Transferring Files from Remote Server to Remote Server Using SCP
If you want to create a user on your server but doesn’t want to give him SSH access then you can run this command to disable his shell:
usermod -s /bin/false username
After running that command, the user specified will not have SSH access but still can do other things like FTP.
Last night I was configuring my new server and having trouble with changing the time zone. I use dateconfig command to change the time zone, I select “Asia/Jakarta” and save the configuration.
Strange thing is the time zone configuration is wrong, instead of WIT the time zone used is UTC. I tried to change the time zone again, this time I didn’t use dateconfig but by creating a symlink from /usr/share/zoneinfo/Asia/Jakarta to /etc/localtime, it doesn’t work either.
Continue reading Problem with Date and Time Zone in CentOS 4.4