# Cd ..
In DOS, this can run, but on Linux this command will generate an error message, because the 'cd' on Linux is a program, so the parameters that the program should be separated by spaces.
This can be overcome by using the alias command, his command is as follows:
# Alias cd ..= "cd .."
Alias command above will translate the command cd .. (No spaces) into a cd .. (With spaces). In order for these commands into a file. Bashsrc (dot bashrc), a dot in front indicates that the file is hidden.
Use a text editor to edit the file, then add the following line:
alias dir = "ls"
alias cd / = "cd /"
alias cd = "cd -"
alias cd ..= "cd .."
alias md = "mkdir"
alias rd = "rmdir-i"
alias rm = "rm-i"
add another alias that you want with the same format as above.
- Other related articles:
No comments:
Post a Comment