* Continuously check Apache error log file: $ tail -f /var/log/httpd/error_log * View first 15 lines from MySQL log: $ head -15 /var/log/mysqld.log * vi keyboard shortcuts => jump to end of line $ => start of line 0 => Delete rest of line D => Repeat the last command given: . (dot) => add [...]
Read the rest of this entry »Archive for the 'Operating Systems' Category
Feb 05
Oct 18
Connect multiple skype accounts under one account
Create a shortcut to Skype.exe and place it on Desktop or start menu. Use a name the will help you clarify which account is which. Start Skype using this shortcut and setup your first account. Then create another shortcut to Skype.exe with a different name. Open the “Properties” of this shortcut by right-clicking on it. [...]
Read the rest of this entry »May 12
How to remove unwanted .DS_STORE files
It is simple. Just use the following command and it will find all files under the folder you are. find . -name .DS_Store -print -delete
Read the rest of this entry »Feb 26
View hidden files and folders in Finder.
OSX Finder is hiding the standard Unix files and folders. You can “Go To Folder…” and type in the name of the “known” folder such as /var/log, but again you will not be able to see the “dot” files. Of course you can use terminal for viewing those files… but come one it is MacOSX!!! [...]
Read the rest of this entry »Feb 24
A “live” view of a logfile on Linux
This approach works for any linux operating system, including Ubuntu, and is probably most often used in conjunction with web development work. tail -f /path/thefile.log This will give you a scrolling view of the logfile. As new lines are added to the end, they will show up in your console screen. For Ruby on Rails, [...]
Read the rest of this entry »Feb 24
Well known but usefull shortcut keys for Windows
Any version of Microsoft Windows Shortcut Keys Windows Key + D Minimizes all windows and shows desktop. Also reopens all windows. Windows Key + E Opens a new Windows Explorer window. Windows Key + F Opens a new find or search function. Typically done by clicking Start, Find or Start, Search. Windows Key + L [...]
Read the rest of this entry »Feb 17
Recover root password
Step 1: For Redhat based distros: Boot from your first install CD and as the very first screen comes up hit F2 and type: rescue ( For RedHat “linux rescue” ) and the computer will boot in rescue mode. It will show a few alternatives, select : ¨mount the existing partitions¨ and go to the shell/console [...]
Read the rest of this entry »Feb 11
Access Your MySQL Server Remotely Over SSH
So you’ve got MySQL on your web server, but it’s only opened to local ports by default for security reasons. If you want to access your database from a client tool like the MySQL Query Browser, normally you’d have to open up access from your local IP address… but that’s not nearly as secure. So instead, we’ll [...]
Read the rest of this entry »Feb 19
How to check installed software in debian based linux (ubuntu)
Who remembers what has installed in his Ubuntu box? Here is the simple command: dpkg –get-selections > installed-software more installed-software What can you do in a fresh Ubuntu installation that you do not remember what software you need? dpkg –set-selections < installed-software and after that dselect All set in your fresh debian based linux. Debian [...]
Read the rest of this entry »Jan 21
Mac OSX Leopard Snow vs Windows 7
AppleInsider has published an in depth look at the competitive origins of Windows 7 and Mac OS X and why the products aren’t really direct competitors. The operating system most users end up with will depend upon what hardware they choose to buy, not the specific feature details of the software that system happens to [...]
Read the rest of this entry »