ALL
Mac shortcut key cheatsheet
More and more people are using Mac computers or switch from Windows or other OS to MacOS, there are lots of shortcut keys which can help improve the work efficiency or ease operations.This post will try to list some commonly used shortcut keys in Mac. But before that, let's first know some common keys on a Mac computer keyboard.There are four major function keys: Command, Control, Option and Shift. Most of the shortcut keys will combine the functional key and other key.BasicCommand key is the most important key in Mac keyboard, it is function the same as Ctrl key in Window in most cases. ...
5,446 0 SCREENSHOT MACOS SHORTCUT COMMAND SHORTCUT KEY
Frequently used Git commands
Git configurationgit config --global user.name "robbin" git config --global user.email "fankai@gmail.com"git config --global color.ui truegit config --global alias.co checkoutgit config --global alias.ci commitgit config --global alias.st statusgit config --global alias.br branchgit config --global core.editor "mate -w" # Configure Editor to use textmategit config -l #List all configurationsUser's git configuration file : ~/.gitconfigFrequently used Git commandsCheckã€addã€pushã€deleteã€find,reset filegit help # Show help of commandgit show # Show th...
Something you may not know about Shell
Shell is also called command line interface, it is the interface between *nix users and computer. Shell is a program which provides service to access OS kernel services.This article is to introduce some not so well known but useful and interesting knowledge about shell.Wikishell was born almost at the same time as Unix. The first UNIX shell was written by Ken Thompson in 1971 and its name is Thompson sh. It's older than Linux kernel.The default Shell in most *nix and MacOS is bash, bash was created by Brian Fox in 1987, the full name is Bourne Again shell(bash).There are other shells except ba...
My frequently used Linux commands
In our day to day work. We may have many chances working on Linux/Unix systems. There are many things we may need to do, checking logs, navigating in directories, creating file or installing software. We may use many commands to complete the work, such as ls, mkdir, cd etc.Below are my frequently used Linux commands or programs recently:pwd : print working directory, sometimes I need to check which working directory I am in in order to know where to go next.ls : List current directory files, before I can operate on a directory, I need to know what are in the directory so that I may not delete ...
Useful Bash Scripts
Many people hack together shell scripts quickly to do simple tasks, but these soon take on a life of their own. Unfortunately shell scripts are full of subtle effects which result in scripts failing in unusual ways. It's possible to write scripts which minimise these problems. In this article, I explain several techniques for writing robust bash scripts. Use set -u How often have you written a script that broke because a variable wasn't set? I know I have, many ti...
What are some lesser known but useful Unix commands?
A few that come to mind, some less known, some more:xargs or parallel: run things in parallel, with lots of optionssed and awk: more well-known but still super useful for processing text files, and faster than Python or Rubym4: simple macro processorscreen: powerful terminal multiplexing and session persistenceyes: print a string a lotcal: nice calendarenv: run a command (useful in scripts)look: find English words (or lines in a file) beginning with a stringcut and paste and join: data manipulationfmt: format text paragraphspr: format text into pages/columnsfold: wrap lines of textcolumn: form...