Linux alias命令

Linux 教程 · 2019-02-17 06:26:24

Linux alias命令用于设置指令的别名。

用户可利用alias,自定指令的别名。若仅输入alias,则可列出目前所有的别名设置。alias的效力仅及于该次登入的操作。若要每次登入是即自动设好别名,可在.profile或.cshrc中设定指令的别名。

语法

alias[别名]=[指令名称]

参数说明:若不加任何参数,则列出目前所有的别名设置。

实例

给命令设置别名

# alias lx=ls
# lx
anaconda-ks.cfg Desktop install.log install.log.syslog qte

点击查看所有 Linux 教程 文章: https://codercto.com/courses/l/14.html

查看所有标签

Learn Python the Hard Way

Learn Python the Hard Way

Zed Shaw / Example Product Manufacturer / 2011

This is a very beginner book for people who want to learn to code. If you can already code then the book will probably drive you insane. It's intended for people who have no coding chops to build up t......一起来看看 《Learn Python the Hard Way》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具