Roshan Book

My Tech Notebook

Make .sh file executable in linux


Source: http://www.digimantra.com/linux/how-to-make-shell-or-sh-bin-file-executable-in-ubuntu/

Somehow somwhere or in most of the stuff you need to make your shell file .sh or .bin file as executable. So to do that simple open the terminal and write the following command

chmod +x filename.sh

Well that gonna make your file executable which can be run from terminal by simple command

sudo ./filename.sh

There is another way of doing it through GUI, when you right click on the file and goto permissions tab then you get an option to make the file executable show as below :

executable shell How to make shell or sh , bin file executable in ubuntu

2 responses to “Make .sh file executable in linux

  1. Pingback: How to assign execute permission to a .sh file in windows to be executed in linux - feed99

  2. Pingback: How to assign execute permission to a .sh file in windows to be executed in linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: