Sometimes we are editing a certain section of code in vi and then navigate to different section for reference. It is tedious to come back read more
Why write php log to separate file Using default php error log in wordpress php code for informational messages can pollute php error log file. read more
Vi (or Vim) editor can remember location at the time of exiting a file. This can be fairly convenient while editing files during development. .vimrc read more
In case there are two many undo done, vi (vim) redo can be used. One redo in vi Approach 1 [ESC] + [CTR] + r read more
Linux Bash code for yesterday’s date in YYYYMMDD format $ date –date=”yesterday” +”%Y%m%d” 20151128 $ date –date=”-1 days” +”%Y%m%d” 20151128 Mac Bash code for yesterday’s read more
Command to find which ini file is loaded for php cli $ php -i | grep “Loaded Configuration File” Sample outcome on Ubuntu Linux Loaded read more
Often we need to run a command as different users. Some of these users may not even have a login shell (e.g. www-data on Ubuntu read more
Adding a new user on Linux can be easily done on command line using useradd. These are some scenarios and handy commands to add a read more
Modifying a user on Linux can be easily done on command line using usermod. These are some scenarios and handy commands to modify a user read more
By default password based on login may be disabled on you Linux Server. Even though it is better to use private and public key for read more
Copyright © 2015 InfoHeap.
Powered by WordPress, Shell, and Shell Child Colorful.