lsdir file listing-al- with hidden filesrmdel-rto remove directory,-f= shift+delcp srcFile dstDircopy file to dstDir with same name,-rcp directorymv srcFile dstFilemove or rename
-
aliassee all alias -
change
aliasorexportpermanatlysudo vim ~/.bashrc sudo vim ~/.bash_aliases #update bashrc source ~/.bashrc
-
sudo without passward
sudo visudo username ALL=(ALL) NOPASSWD:ALL
xdg-open $fileopen files in graphical applications, or use urlxdg-open http://askubuntu.com/
-
delete branch: locally
git branch -D branch_nameremotely:git push <remote_name> --delete <branch_name> -
git merge developmerge develop changes to current withou modifying develop -
Avoid commits on my branch interlace with other people's commit? Merge pull request without merge commits
git checkout mybranch git rebase master #now all changes of master are merged into mybranches git checkout master git merge --ff-only mybranch -
check/update remote upstream:
git remote -v
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
- Command line: sudo apt-get install fcitx-googlepinyin
- System settings -> Language support -> Keyboard input method system, change to fcitx.
- Log out log in
- At top right, click the penguin icon -> Text entry setting
- Click +
- Search ‘Google’, find ‘Google Pinyin (Fcitx)’ 7, Use ‘Ctrl+space’ to switch between input methods