Several cd shortcuts and cd shortcuts
Cd is a command that engineers use every day. Today I will share some tips related to cd.
Cd
If you use cd ~ To enter the home directory of the current user, you can try typing cd directly. Similarly, double-click the keyboard.
Cd-
Cd-switched from the last two working directories. For example, it is under/usr and then cd/var. If you want to return to/usr, you can use cd -.
Cd ~ Username
This command can directly go to the home directory of username.
Cd + ls
According to my observation, the next command sent by many engineers after the cd is ls. Therefore, you can consider combining the two commands. In the. bashrc file, after you add the following code to the directory, the files in the directory will be listed:
function cd() { builtin cd ${1:-$HOME} && ls; }
Mkdir + cd
After a new directory is created, it usually enters the directory. Therefore, the two commands can be combined. In the. bashrc file, add the following code and run mkdircd to create a directory and enter it.
function mkdircd () { mkdir -p “$@” && eval cd “\”$$#\””; }
In some distributions of Linux, you can use the .. command to enter the parent directory. If your version does not have this function, add the following code to. bashrc.
alias ..=”cd ..”
You can also define .... To go to the top two directories.
If you want to learn the latest skills, please pay attention to the public number "Engineer's affairs"
The World of Warcraft macro heard that you can bind several shortcut keys to one, how to set, details
/Cast [mod: alt] skill name 1; skill name 2
This macro means that skill 1 is used instead of ALT, and Skill 2 is used .. The same is true for other SHIFT and CTRL commands ..
Another method is to use the public CD.
/Castsequence reset = 0, 0, Skill 1
/Castsequence reset = 0, 0, skill name 2
This macro means to use Skill 1 for four times and Skill 2 for three times in a public CD ....
How many techniques does Karl have?
Element call shortcut: R cool-down time: 2217/12/5 seconds
Quick and flexible [WWE] shortcut key: Z cool-down time: 15 seconds
Quick cool-down [QQQ] shortcut key: Y cool-down time: 20 seconds
Tornado [WWQ] shortcut: X cool-down time: 25 seconds
Electromagnetic pulse [WWW] shortcut: C cool-down time: 25 seconds
Ghost walking [QQW] shortcut: V cool-down time: 60 seconds
[QWE] shortcut key: B cool-down time: 25 seconds
Chaotic meteorite [EEW] shortcut key: D cooling time: 55 seconds
Furnace genie [EEQ] shortcut: F cool-down time: 30 seconds
Cold ice wall [QQE] shortcut key: G cool-down time: 25 seconds
Yang Yan impact [EEE] shortcut key: T cool-down time: 60
Baike.baidu.com/view/6020.8.htm?sub5096863
Reference: baike.baidu.com/view/6020.8.htm?sub5096863