Thursday, September 22, 2011
Monday, September 19, 2011
Cheat Sheet for Ruby
I am jumping directly into obscure world of Ruby. Here is a cheat sheet for erb( embedded ruby). Hope it helps.
http://cheat.errtheblog.com/s/erb/
http://cheat.errtheblog.com/s/erb/
Friday, September 9, 2011
Commands to untar different types of files in Ubuntu
I had thought that simple commands which we often use might be lost somewhere deep in our ocean of thoughts.
- Type at the command prompt
- $ tar xvzf fileName
.tar.gz - for uncompress a gzip tar file (.tgz or .tar.gz) - $ tar xvjf fileName
.tar.bz2 - for uncompress a bzip2 tar file (.tbz or .tar.bz2) - $ tar xvf
fileName.tar - for uncompressed tar file (.tar)
- x = eXtract, this indicated an extraction ( c = create to create )
- v = verbose (optional) the files with relative locations will be displayed.
- z = gzip-ped; j = bzip2-zipped
- f = from/to file ... (what is next after the f is the archive file)
- $ tar xvzf fileName
- The files will be extracted in the current folder (most of the times in a folder with the name 'fileName').
Subscribe to:
Posts (Atom)
