zoukankan      html  css  js  c++  java
  • linux 别名

    [root@localhost tmp]# alias
    alias cp='cp -i'
    alias egrep='egrep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias grep='grep --color=auto'
    alias l.='ls -d .* --color=auto'
    alias ll='ls -l --color=auto'
    alias ls='ls --color=auto'
    alias mv='mv -i'
    alias rm='rm -i'
    alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
    [root@localhost tmp]# alias ll='ls'
    [root@localhost tmp]# ll
    a.sh
    mongodb-27017.sock
    php-cgi.sock
    systemd-private-39ff8a37d82b4360a74c90d75ec2c644-redis.service-J2rFhV
    test
    [root@localhost tmp]# alias ll="ls -l --color=auto"
    

      

    alias 查看别名

    alias ll="ls -al" 设置别名

    重启失效

    生效:

    vim ~/.bashrc

     


    alias vi="vim"

     

    source ~/.bashrc

  • 相关阅读:
    进程同步
    CPU调度
    线程的引入
    进程互斥
    处理器状态
    操作系统
    进程的基本概念
    socket应用
    html笔记
    HTTP基本链接原理
  • 原文地址:https://www.cnblogs.com/php-linux/p/12817574.html
Copyright © 2011-2022 走看看