Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get value of an alias in bash

type alias_name
# example:
type ls
# ls is aliased to `ls --color=auto'
Comment

bash alias function that accepts arguments

alias example='f() { echo Your arg was $1. };f'
Comment

bash alias with parameter

myfunction() {
    #do things with parameters like $1 such as
    mv "$1" "$1.bak"
    cp "$2" "$1"
}
Comment

PREVIOUS NEXT
Code Example
Shell :: open vs code from terminal 
Shell :: how to add a file in git 
Shell :: ksd command not found 
Shell :: r_dwssap.sh 
Shell :: how to create matrix in git bash 
Shell :: files 644 folders 755 
Shell :: sshfs lxc 
Shell :: pocketsphinx mac big sur 
Shell :: strstr bash 
Shell :: python-minimal has no installation candidate 
Shell :: bash add text to second line 
Shell :: amend commit change description 
Shell :: build .so file 
Shell :: Trying to bind fd 26 to <0.0.0.0:443: errno=13 
Shell :: reart admin 
Shell :: colcon build number of threads 
Shell :: cent os install docker 
Shell :: changng truffle build directory 
Shell :: nose2 check coverage 
Shell :: how to hide log in background job in linux 
Shell :: git clone directory from repository 
Shell :: cannot open source file conio.h ubuntu 
Shell :: how to install ndiswrapper on ubuntu 
Shell :: linux install toilet 
Shell :: how to install ktouch in linux 
Shell :: how to use github code 
Shell :: docker run -d bash command not found 
Shell :: linux user expiration 
Shell :: screenshot shortcut in ubuntu 
Shell :: oracle docker images 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =