My Note

bash

cd fir-<tab> -> cd first (Quick completion)

path

abs path

rel path

mkdir

mkdir -p mydir1/mydir2 -> will also create all directories leading up to the given directory that do not exist already. If the given directory already exists, ignore the error.

mv and cp

mv aa bb -> rename or move

cp aa bb -> copy

rm

sudo

sudo -> SuperUser do

sudo su -> root

chmod

ugo -> user, group, others

a -> all

rwx -> read(4), write(2), execute(1)

chmod ug+rw mydir -> drw-rw----

chmod 664 myfile -> -rw-rw-r--

chmod +x [filename] -> Enable Run

sudo mv tool.sh /bin -> To install it and Enable it Run Everywhere

Try to install the MarkDown.

man

  1. General Commands
  2. System Calls
  3. Subroutines
  4. Special Files
  5. File Formats
  6. Games
  7. Macros and Conventions
  8. Maintenence Commands

Mentioned


install

/bin

sudo mv tool.sh /bin -> To install it and Enable it Run Everywhere

apt-get

apt-get update

apt-get install git-core -> install the Git

wget 122.115.61.189/tmp/cc-note -> Download

Mentioned


vim

split view

vim config

~.vim/snippets/

c.snippets(e.g.)

# #include
snippet inc
    #include <${1:stdio}.h>${2}

vim ctags

Auto completion

find file

Metioned


Extract


diff


git

~/.gitconfig

[user]
name = Peter Wang
email = happypeter1983@gmail.com
[core]
editor = vim
[alias]
ci = commit -a -v
co = checkout
st = status
br = branch
throw = reset --hard HEAD
throwh = reset --hard HEAD^
[color]
ui = true

[commit]
template = ./.commit-template
[push]
default = current

tig

d -> Show diff

Mentioned


.sh

for file in `ls`
do
    if [[ $file == *.md ]]; then
        echo $file
    fi
done

TODO


All by XiaoGuo