-
Recent Posts
Recent Comments
Archives
Categories
Meta
Author Archives: PW
Linux Find and Replace with sed
Have you ever found yourself googling how to find and replace within a file from the linux command line? Me too. Here’s the answer that works for me: sed -i 's/search/replace/g' /path/to/file.txt
Rather than type that command all the time, I wrote […] Continue Reading
Posted in Googling for Answers, Linux
Tagged linux
Bash Script to Show All Cron Jobs by All Users
I googled this up the other day and it's a winner for sure. The script was tagged as the best answer to "How do I list all cron jobs for all users?" over at stackoverflow.
Posted in Googling for Answers, Linux
Tagged cron, linux
Recursively chmod only Directories or Files
This particular trick is invaluable, and I’m tired of googling it. You can read the original article here.
[note color=”#DDD”]Directories Only:find . -type d -exec chmod 755 {} \;[/note] [note color=”#DDD”]Files Only:
find . -type f -exec chmod 644 {} \;[/note] And here are some other ones I […] Continue Reading
Posted in Googling for Answers, Linux
Tagged chmod, linux
Getting this damn blog to look the way I wanted!
I don’t even know where to begin. First, finding a good theme to use as a starting point is HARD. Don’t let anyone tell ya different. Second, tweaking that theme (the right way) is not always easy.
After hours of theme searching I finally came across Grey Opaque by H.-Peter […] Continue Reading
Posted in Web Development
Tagged Child Theme, Wordpress
Missing Admin Bar in WordPress
I just installed Wordpress and after installing a theme I liked I noticed that it was missing the Admin Bar on the public portion of the site.
A quick google search turned up the answer in the Wordpress Support Forums:
Posted in Googling for Answers, Web Development
Tagged Wordpress
Compress/Uncompress a Linux Directory
I’m so tired of googling this. The reason I have to look it up every-damn-time is because I can never remember exactly what the switches are for compressing/uncompressing.
The following was taken from here.
Create Archive:
[note color=”#DDD”]tar -zcvf example.tar.gz /home/example[/note]Where:
- -z: Compress archive using gzip program
- -c:
Setting up a LEMP server on Debian 6
Skip the long winded description
Downloading Packages
Vhost Configuration
Testing
Installing MySQL
Installing phpMyAdmin
Setting up SFTP
I’ve been playing with linux as a hobby for about 13 years and I’ve been running my own virtual servers for web and mail for about 2. In all that time, my only […] Continue Reading