Imagine you are working in your shell, you could be in any directory anywhere, but you want to go to ~/Projects/MyProject. You’re probably used to typing something like this: cd¬†~/Proj[tab]/MyPro[tab] Wouldn’t it be nice if you could end up in the exact folder you want with just: cd¬†MyProject The CDPATH environment variable Much like the […]

When you pull from a remote repository, the number of new files listed can sometimes cause conflict messages to get scrolled off the screen. Not very convenient. You can use the following command to get a quick list of conflicts from Git: git ls-files -u

Something I have never known how to do in Linux, is rename a directory full of files. (Crazy right?!) Fortunately for a noob like msyelf, Sam Bisbee does know how to do this, and showed me today. In the following example, I am renaming a directory of files with no file-extension, and moving them to […]

Ever wonder how many files or lines of code are sitting in your project? Hop on the command line and run the following find commands in your bash Find the number of files in the current directory (runs recursively down into all subdirectories): find . | wc -l Find how many lines of code are […]

The path to httpd on redhat 9 is /etc/init.d/httpd You can run the following commands on it: /etc/init.d/httpd configtest /etc/init.d/httpd graceful /etc/init.d/httpd restart /etc/init.d/httpd stop /etc/init.d/httpd start I always run configtest before restarting to make sure I haven’t messed anything up.