export SVN_EDITOR=vim
vim can be replaced with nano for instance, but not with mate, because its a graphical editor.
export SVN_EDITOR=vim
vim can be replaced with nano for instance, but not with mate, because its a graphical editor.
Just type this command:
uptimePlease execute following command:
ifconfig | grep netmask
Install the small nice applications called “Flip” with:
brew install flipand then execute following command:
flip -u filenameOptions:
-u = convert file(s) to Unix newline format (newline)
-d = convert file(s) to MS-DOS/Windows newline format (linefeed + newline)
-m = convert file(s) to Macintosh newline format (linefeed)
-t = display current file type, no file modifications
Install and enjoy:
http://totalterminal.binaryage.com/
Just execute following command in your terminal (~ is the home directory):
scp filename.txt username@hostname.org:~
Uploading directory with all files inside it:
scp -r dirname username@hostname.org:~
Counting the number of words in file:
cat file.txt | wc -w
Searching the output for “uzza” word:
cat big-file.txt | grep uzza
Gzipping files:
gzip some_file.txtDecompressing Gzipped files:
gzip -d some_file.txt.gz
Creating archive of directory:
tar -cvf archive-name.tar some-dir
c – creating new archive
v – verbose
f – we want to specify the name of the output file
Creating compressed archive of directory:
tar -czvf archive-name.tgz some-dir
z – compress with gzip
Expending the archive:
tar -xzvf archive-name.tgz
x – tells to expend rather than compress
Creating entire directory structure:
mkdir -p dir1/dir2/dir3
Open
~/.profile
Add following lines:
export CLICOLOR=1 export LSCOLORS=CxFxCxDxbxegedabagacad
Colors:
a black b red c green d brown e blue f magenta c cyan h light grey A block black, usually shows up as dark grey B bold red C bold green D bold brown, usually shows up as yellow E bold blue F bold magenta G bold cyan H bold light grey; looks like bright white x default foreground or background