NET 4000 Chapter 1.1.2: 1.4.3 Alias Facts

15 views1 pages
9 Dec 2017
School
Department
Course
Professor

Document Summary

An alias is a shortcut stored in memory that runs a command on your linux system. Most distributions include predefined aliases that are created at system startup. However, a custom alias can be defined from the shell prompt. Aliases defined with the alias command are not persistent across reboots. To make aliases persistent across reboots, add the alias definitions to /etc/profile or home/user/. bashrc. The following table describes the commands that create and remove aliases: Display the currently defined aliases on the system. [rtracy@fs5 ~]$ alias 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 which="alias | /usr/bin/which --tty-only --read-alias --show-dot. Create a custom alias that runs an existing command. A single alias can be defined to run multiple commands. When creating the alias, encapsulate the command(s) with quotation marks or apostrophes. alias securebackup="cp . /*.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents