Category Archives: System Administration

Creating Empty File with Specified Size

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:

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.

Transferring Files from Remote Server to Remote Server Using SCP

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 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

Disable Shell Access

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:

After running that command, the user specified will not have SSH access but still can do other things like FTP.

Problem with Date and Time Zone in CentOS 4.4

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