Skip to content

pavankat/bash_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Script Permissions and Names

chmod +x ~/somecrazyfolder/script1

  • If you want to restrict its use to just your user, you can use this instead:

chmod u+x ~/somecrazyfolder/script1

  • to run a bash script

    • you just right the script name if you have #!/bin/bash at the top of it.
  • To make things more convenient, you can place scripts in a “bin” folder in your home directory:

    • By placing scripts here, you can just run them by typing their name, just like other commands, instead of having to cd around

~/bin

  • before you name a script, do this and check if you have a program installed that uses that name

which scriptNameHere

  • comments start off with the # tag

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published