How to specify #NanoEditor or #vieditor as editor for #crontab
Posts in the Linux / Unix Commands category:
How to locate of your php.ini File
Different hosts use different location for storing and accessing files and so you’ll need to research where your php.ini file. To do that Step 1. Create a script to display your PHP information Create a very simple php script and place it in your home directory(www or public_html or httpdocs). Use script editor or a […]
Midnight Commander – connecting an ftp site with @ in username
I faced an issue today where my host needed to have login name in the form : user@site.com ie character ‘@’ in username My username in format user@site.com:password@ftp.site.com – did not work in MC. I figured the solution is to replace %40 with @ in username. example : user%40site.com:password@ftp.site.com
How to upload your Site backup to your Dropbox Account – easy way
Upload your website #backup / #Akeebabackup to your #Dropbox Account
wget command for windows
You can copy the exe file from
Change group and owners of files and folders on Linux server
chown command – change the owner of a file You must be either the root user or the owner of the file in order to change the group ownership. To change the group and owners of files and folders on the linux server use the below command Set the file’s owner: $ chown username filename […]
How to restore compressed mysql backup file
To restore compressed backup files you can do the following: gunzip < [backupfile.sql.gz] | mysql -u [uname] -p[pass] [dbname] If you need to restore a database that already exists, you’ll need to use mysqlimport command. The syntax for mysqlimport is as follows: mysqlimport -u [uname] -p[pass] [dbname] [backupfile.sql]
Enable Disable register global from .htaccess
At times, we need to set register_globals to on or to off and we cannot modify such directive of php from the php.ini for obvious motives. Then we can plan register_globals to on or off through an entry in the file .htaccess in the following manner. For on: php_flag register_globals on For off: php_flag register_globals […]
Mysql database migration using shell command
I had a problem migrating the large mysql databases from one server to another. When ever i tried to do that using some utility I got “Out of Memory” error. After a bit of research work, I realized that big databases can be migrated using shell command easily Below you can find instructions to move […]
compress directory under Linux using shell prompt
How can I compress a whole directory under Linux / UNIX using a shell prompt? It is useful to backup files, email all files. Technically, it is called as a compressed archive. GNU tar command is best for this work. It can be use on remote Linux or UNIX server. It does two things for […]