Linux command
goto 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Register
goto -r [alias-name]
Navigate
goto [alias-name]
List
goto -l
Unregister
goto -u [alias-name]
说明
goto is a directory navigation tool that allows users to create aliases for frequently accessed directories. It provides tab completion and quick jumping between projects. The tool integrates with the shell (bash, zsh, fish) and provides fast navigation without typing long paths.
参数
- -r, --register _ALIAS_
- Register current directory as alias
- -u, --unregister _ALIAS_
- Unregister alias
- -l, --list
- List all registered aliases
- -c, --clean
- Remove non-existent directory aliases
- -x, --expand _ALIAS_
- Print alias path
- -p, --push
- Use pushd instead of cd
- -v, --version
- Display version and exit
- -h, --help
- Display help and exit
FAQ
What is the goto command used for?
goto is a directory navigation tool that allows users to create aliases for frequently accessed directories. It provides tab completion and quick jumping between projects. The tool integrates with the shell (bash, zsh, fish) and provides fast navigation without typing long paths.
How do I run a basic goto example?
Run `goto -r [alias-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r, --register _ALIAS_ do in goto?
Register current directory as alias