I Ivanesn New member Dec 28, 2021 #1 What is $1 script Linux? Answer $1 is the first command-line argument passed to the shell script . … $0 is the name of the script itself (script.sh) $1 is the first argument (filename1) $2 is the second argument (dir1)
What is $1 script Linux? Answer $1 is the first command-line argument passed to the shell script . … $0 is the name of the script itself (script.sh) $1 is the first argument (filename1) $2 is the second argument (dir1)