`
chengyuanheng
  • 浏览: 19255 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

how to set alias and cancel alias in linux ?

 
阅读更多

SET:

 

1. run:  sudo vi ./.bashrc

2. set:  alias s_yes='yes'

            alias s_banner='banner'

            alias s_ddate='ddate'

            alias s_fortune='fortune'

            alias s_fortune_zh='fortune-zh'

            alias s_cal='cal 9 1752'

            alias s_xev='xev'

            alias s_xeyes='xeyes'

            alias s_cowsay='fortune | cowsay'

            alias s_cowthink='fottune | cowthink'

            alias s_factor='factor 999'

            alias s_g_moo='apt-get moo'

            alias s_b_moo='apt-build moo'

            alias s_sl='sl'

            alias s_logo='linuxlogo'

            alias s_oneko='oneko'

            alias s_who='who is i 

            alias lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative

            alias short_log = shortlog --format='%H|%cn|%s' | grep '#2230'

 

3. run:  source ~/.bashrc

 

CANCEL:

 

1. run:  sudo vi ./.bashrc

2. set:  unalias s_yes

            unalias s_banner

            ...............

3.run:   source ~/.bashrc

 

分享到:
评论
2 楼 chengyuanheng 2014-09-26  
why I need create a new file named .bash_alias ? when I use VI , I can create a new file auto 
1 楼 zhangfortune 2014-09-26  
why fortune in your fu*king alias ?

note: no need use sudo when edit your .bashrc, as we know .bashrc in our home dir

best do: create a new file named .bash_alias then source it in you .bashrc 

相关推荐

    linux howto中文合集

    这个是合集~一般是这里最全的了 ...HOWTO-html<br>News-Leafsite-html<br>Oracle-HOWTO-html<br>Plug-and-Play-HOWTO-html<br>PPP-HOWTO-html<br>Printing-HOWTO-html<br>QT 3.3 中文白皮书.pdf Quota RCS-...

    How To Set Up and Use the SAP ME Assembly Feature

    How To Set Up and Use the SAP ME Assembly Feature

    how to set for OpenMP in Visual Studio 2005

    It introduces how to setup for OpenMP in Visual Studio 2005 with Inter Fortran 10.1. With a simple 'Hello world ' example

    Linux Howto 中文文档

    Linux HOWTO(中文版) BootPrompt-HOWTO (28KB) 启动提示说明 CDROM-HOWTO (27KB) 如何安装, 设定及使用光驱,同时列出支援的硬体. Chinese-HOWTO (39KB) 如何在 Linux 的系统上使用中文?/TD> Config-...

    Linux中文HOWTO

    Linux中文HOWTO Linux中文HOWTO Linux中文HOWTO

    How to find and fix faults in Linux applications

    Everybody claims that it is easy to find and fix bugs in programs written under Linux. Unfortunately it is very hard to find documents explaining how to do that. In this article you will learn how to ...

    Secure Programming for Linux and Unix HOWTO.rtf

    Secure Programming for Linux and Unix HOWTO by David A. Wheeler v3.010 Edition Published v3.010, 3 March 2003 Copyright ? 1999, 2000, 2001, 2002, 2003 by David A. Wheeler This book provides a set of ...

    how to set up Kinect for your Linux Mint 12

    This is a simple and short tutorial on how to set up Kinect for your Linux Mint 12 (It also should work fine with Ubuntu 12.04 or 12.10). For this task OpenNI Framework is going to be used. The ...

    Chinese-Linux-HOWTO

    《Chinese-Linux-HOWTO》是一份详细的指南,专注于在中文环境下配置和使用Linux操作系统。这份文档深入到源码级别,旨在帮助用户理解和解决在安装、配置和使用中文Linux时遇到的各种问题。它不仅适用于初学者,也对...

    Linux HOWTO 中文版(全)

    《Linux HOWTO 中文版(全)》是一个包含多种Linux技术指南的综合资源,对于Linux用户和管理员来说,这是一个极具价值的学习和参考材料。这些HOWTO文档覆盖了从基础操作到高级配置的各种主题,旨在帮助用户更好地理解...

    SQL and Relational Theory: How to Write Accurate SQL Code

    And how? Database theory and practice have evolved considerably since Codd first defined the relational model, back in 1969. This book draws on decades of experience to present the most up to date ...

    How_to_write_and_publish_a_scientific_paper

    How to write and publish a scientific paper ContentsChapter 1 What Is Scientific Writing? Chapter 2 Origins of Scientific Writing Chapter 3 What Is a Scientific Paper? Chapter 4 How to Prepare the ...

    Linux Howto 中文版完整版.zip

    Linux Howto 中文版完整版.zip

    最新的linux howto 中文合集

    # VMS to Linux HOWTO, by Guido Gonzato <guido@ibogfs.cineca.it>. 如何从 VMS 转移到 Linux。 Updated 17 September 1999. # WWW HOWTO, by Wayne Leister <n3mtr@qis.net>. 如何建立 WWW 客户端及伺服器。 ...

    C++ How to Program, 10th Edition

    C++ How to Program presents leading-edge computing technologies in a friendly manner appropriate for introductory college course sequences, based on the curriculum recommendations of two key ...

    Linux for Beginners: An Introduction to the Linux Operating System

    Exactly how permissions work and how to decipher the most cryptic Linux permissions with ease. How to use the nano, vi, and emacs editors. Two methods to search for files and directories. How to ...

    linux-how-to手册

    Linux "how-to"手册是一系列详细的指南,专为Linux用户和管理员提供操作步骤和技术说明。这些手册涵盖了Linux系统中的各种主题,旨在帮助用户理解和解决特定问题。以下是对压缩包文件中部分子文件名称的解释,以及...

    This example demonstrates how to Set capture on the mouse to

    This example demonstrates how to Set capture on the mouse to detect when it enters and leaves a specific portion of your form.

Global site tag (gtag.js) - Google Analytics