Skip to main content

Posts

Showing posts with the label alias

LPI E - alias

LPI E - alias * Awesome Tricks and Hacks at end Introduction An alias is a way to create a shortcut or alternative name for a command in Linux. When you define an alias, you create a new name for a command that is already installed on your system. You can then use the new name to run the command instead of the original name. Temporary Session alias Aliases are typically used to simplify the use of frequently used commands or to create shortcuts for long or complex commands.  For example, to create an alias for the ls -la command, you can run the following command: $ alias ll='ls -la' After defining the alias, you can use the ll command to execute the ls -la command. The alias will be active for the duration of the current shell session . Permanent Sessions alias If you want to make the alias persistent across multiple sessions, add the alias command to your shell's startup file (e.g. ~/.bashrc for the Bash shell). Open the .bashrc file in your home directory with a text edi...