Linux Server Administration Tips

Accidental Ctrl+S Locks and Freezes Linux Terminal / SSH / Telnet

Ctrl+S happens to be a rather handy and popular combination as it’s used in Windows applications to save your current working data. I accidentally used it several times in Vim and it keeps locking the screen up and halting the interactivity — basically, after Ctrl+S I can’t do anything to the terminal (window). I use …

Accidental Ctrl+S Locks and Freezes Linux Terminal / SSH / Telnet Read More »

How to change Vim syntax highlighting colors?

Unbuntu has auto-configured Vim to use syntax highlighting for text (mostly, programs and configuration files of course) editing, the problem however, is that some of the colors appear to be darker than wanted on SSH console and it’s a little hard to recognize comfortably. So how can we change the default colors of the syntax …

How to change Vim syntax highlighting colors? Read More »

Linux: The differences between file times: atime (accessed time), ctime (changed time) and mtime (modified time).

Unless you have explicitly opted out with a noatime option mounting your Linux file system, there are generally 3 types of time on each and every file of Linux: atime or access time, ctime or change time, and mtime or modification time. These are the differences between the 3 file system times: atime — access …

Linux: The differences between file times: atime (accessed time), ctime (changed time) and mtime (modified time). Read More »

PHP: Getting Last Changed Time of a File – File ctime

File ctime may be a little misleading in nature as many would think it as the creation time of the file, but actually it’s the meta data such as the ownership or permissions change time of the file in addition to content modification. To get the ctime of a file in PHP: $last = filectime(‘anyfile’); …

PHP: Getting Last Changed Time of a File – File ctime Read More »

How to know if your hosting provider is overselling on your server?

To check whether you are one of the victims that are dwelling on oversold web hosting servers, you need to have SSH access to your server. Now perform the following commands: cat /proc/cpuinfo | grep processor | wc -l Which will usually return the number of the CPUs of the current server: 2 Then, display …

How to know if your hosting provider is overselling on your server? Read More »

Dismiss unusable proxy server lists – Build your own stable socks5 proxy server and surf anonymously in minutes!

All web hosting servers with SSH access enable you to tunnel the sessions so that your local computer can act like a socks proxy. For web hosting users, browsing anonymously has never been so easy. There’s a detailed step by step tutorial for turning your web host into a socks5 proxy server. Basically, you use …

Dismiss unusable proxy server lists – Build your own stable socks5 proxy server and surf anonymously in minutes! Read More »

Backup and recover a MySQL database under command line

Yes you can log into phpmyadmin, backup your database by simply using Export and recover it by using Import. However all lamp servers come with a max upload file size, limited by the smaller of upload_max_filesize and post_max_size while also restricted by php.ini configurations such as memory_limit and max_input_time. What if you’ve got a huge …

Backup and recover a MySQL database under command line Read More »

How to count files (get the number of files) under a directory in Linux?

Just perform this command under the directory: find . -type f | wc -l and you will get the total number of files under it (recursively). Simply copy and paste that to do the trick. Or if you just need to count the files directly under the current directory: ls -f | wc -l Which …

How to count files (get the number of files) under a directory in Linux? Read More »

Cron jobs (Crontab jobs) tricks and tips on DreamHost

Crontab is a utility tool on Unix-like OS that enables you to make a program daemon scheduled to run at a specified interval. For example, to fetch news feed and import them into your own database every hour on the hour or to send pre-written newsletters at a given time everyday. With DreamHost you can …

Cron jobs (Crontab jobs) tricks and tips on DreamHost Read More »

Colorful Linux Bash Console by .alias and .bash_profile

At Dreamhost, we are all granted unlimited number of accounts for SSH access to the servers. The default console setting is a monochromatic one just like that in the old DOS style that it sores the eyes to look through the lines for something. Read their wiki the other day and found it’s possible to …

Colorful Linux Bash Console by .alias and .bash_profile Read More »

Essential SSH – 19 Linux SSH Commands You Simply Cannot Live Without

More and more web hosting providers are offering SSH(Secure Shell) access to their customers now, if you are one of them, put this advantage to good use will make your online life a lot easier. Don’t worry, we are just going to deal with just a few more than 15 shell commands, pretty much those …

Essential SSH – 19 Linux SSH Commands You Simply Cannot Live Without Read More »

Scroll to Top