tar -cvf dir.tar file_names |
Tars files |
tar -tvf dir.tar |
Lists files in tar directory |
tar -tvzf dir.tar.gz
|
Lists files in zipped tar directory |
tar -xvf dir.tar |
Extracts files
|
tar -tvf <tarfile> |
grep <filename>
|
Find file name in tar file
|
tar -xf <tarfile>
<filename>
|
Extracts single file
|
tar -xzvf dir.tar.gz
|
Extracts files from zipped
tar directory
|
If those random labels on your Xemacs window are
driving you crazy, try this handy fix in your ~.emacs
file - comment out (add ";" at
beginning of each row) the following (from Andy Wood):
; (if
(equal frame-title-format "%S: %b")
; (setq
frame-title-format
; (concat
"%S: " invocation-directory invocation-name
; "
[" emacs-version "]"
; (if
nil ; (getenv "NCD")
; ""
; " %b"))))
To get the size of float,
integer, etc.:
#include <stdio.h>
#include <stdlib.h>
main()
{
printf("%d\n",sizeof(float)); //4
printf("%d\n",sizeof(short int)); //2
printf("%d\n",sizeof(unsigned short int)); // 2
printf("%d\n",sizeof(int)); //4
printf("%d\n",sizeof(char)); //1
}
Python Memory issues
Try enabling automatic garbage collection: gc.enable()
Last updated 05/15/2015 by Elizabeth Clark