I confess that I can never remember the syntax for this myself. I know there is a j and an x flag in there somewhere. So I’m adding this for myself as much as for everyone else who can’t keep this syntax straight.
tar -jxvf filename.tar.bz2
I confess that I can never remember the syntax for this myself. I know there is a j and an x flag in there somewhere. So I’m adding this for myself as much as for everyone else who can’t keep this syntax straight.
tar -jxvf filename.tar.bz2
Sometimes you have a bunch of .html files which you need to rename .php for a project. You could rename them one at a time, but that gets a little old after about 5 files. This little shell script will rename the extension on a whole directory of files:
for f in *.html; do mv $f `basename $f .htm`.php; done;
Here’s a quickie on how to determine the process specs in linux. I am always forgetting the command so this is as much for me as it is for others:
cat /proc/cpuinfo