Tags » File Permission

Refactoring bash scripts

Checking file permissions in terminal

$ ls -l
drwxrwxr-x 3 vagrant vagrant 4096 Jun  7 00:58 R
-rw-rw-r-- 1 vagrant vagrant    7 Jun  8 20:22 test.sh
-rw-rw-r-- 1 vagrant vagrant    7 Jun  8 20:22 test1.sh
# -rw-rw-r--
#first letter (-) indicates, it's file. 346 more words
Bash Scripting

Beginner's guide to file permission in Linux

When you are executing shell scripts you can execute it using (Assuming your .sh file in your current directory)

bash file_name.sh

or

./file_name.sh

but when you run script in ./ method you may find…

607 more words