Answers for "how to define a command bash"

0

how to define a command bash

#define command output to a varible
myv1=$(pwd)
echo $myv1
myv2=`ls`
echo $myv2
you can use $() or `` to assing a command output to a varible
Posted by: Guest on July-22-2021
0

how to define command in bash

alias yourVariable='cd /Home/yourFolder'
Posted by: Guest on December-06-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language