Posts Tagged With: zip

Zip Command in Linux

Tagged with: , , , ,

Command to create a zip file from a given folder.


zip -r File.zip Folder/
No Comments »

Decompress Bzip2 File

Tagged with: , , , , , , , ,

Decompress a compressed tar archive in bzip2


tar -xvfj archive.tar.bz2tar -xvfj archive.tar.bz2
No Comments »

Create a Bzip2 File

Tagged with: , , , , , ,

create a tarball compressed into bzip2


tar -cvfj archive.tar.bz2 dir
No Comments »

Extract to Given Folder

Tagged with: , , , , ,

extract a tarball into / tmp


tar -xvf archive.tar -C /tmp
1 Comment »

Create Compressed Tarball

Tagged with: , , , , , ,

Create a compressed tarball


tar -czf archive.tar file_name
No Comments »

A Shell Script to Create a Build of Firefox Extension

Tagged with: , , , , , , ,

This shell script will create a build of a firefox extension in linux. This is created according to my details(eg, the guid has @binnyva.com in it) – but you can modify it and use it yourself.


app=$1
folder=$2

if [ $# -eq 0 ] ; then
	echo "Useage: sh build.sh  []"

elif [ $# -eq 1 ] ; then
	folder="$1@binnyva.com/"
fi

rm $app.xpi
cp -r $folder temp
cd temp
rm -rf .git

zip -r $app.xpi .>/dev/null
mv $app.xpi ..
cd ..
rm -rf temp
echo "Built $app successfully"

No Comments »

RAR Support In Linux

Tagged with: , , , , , , ,

RAR Support in Linux is easy – just install the unrar tool…


sudo yum install unrar
No Comments »

Read Tarballed Text File

Tagged with: , , , , ,

How to read a big text file that is tarballed – without extracting the whole thing…


bzcat enwiki-20070802-pages-articles.xml.bz2 | head -10
No Comments »

Packaging a Subversion Project

Tagged with: , , , , ,

This is the method that I use to package a SVN Project. For CVS projects, the code is slightly different. Please note that the second line requires bash to work.

This is how I packaged nexty


svn checkout https://nexty.svn.sourceforge.net/svnroot/nexty
find nexty/ -name .svn -exec rm -rf {} \;
tar -czf nexty.tar.gz nexty/
rm -rf nexty/
1 Comment »