Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ubuntu server does not run scripts

First, ensure your script begins with the correct hash-bang, 
e.g. #!/bin/bash

Then make sure the .sh file is executable -
    Open a terminal using Ctrl+Alt+T or from the applications menu
    Navigate to the location of the .sh file. e.g. 
    cd ~/location/to/my/file
    Run  
    chmod u+x <file name>.sh
    , or if permission is an issue, 
    sudo chmod u+x <file name>.sh 
    and enter your password to confirm
    Alternatively, you can right-click the .sh file from the file 
    browser and update permissions via the Properties option
Comment

PREVIOUS NEXT
Code Example
Shell :: shopify theme kit for linux 
Shell :: git set description branch 
Shell :: svn show revision of remote url 
Shell :: ngitignore 
Shell :: git ignore local file changes 
Shell :: wsl install mongodb 
Shell :: node js nodemailer Error: Invalid login: 535-5.7.8 Username and Password not accepted. 
Shell :: how to install nautilus 
Shell :: acce;lerate ubuntu 
Shell :: turn of raspberry 
Shell :: bash script: permission denied 
Shell :: linux command after create folder cd it 
Shell :: datetime calculation in shell 
Shell :: bash script count directories in directory 
Shell :: chmod read only command in linux 
Shell :: artisan route list naem 
Shell :: restart tomcat 9 ubuntu 
Shell :: git alias 
Shell :: list files on hadoop file system 
Shell :: ubuntu "Read-only filesystem" 
Shell :: error: cannot list snaps: cannot communicate with server: Get "http://localhost/v2/snaps": dial unix /run/snapd.socket: connect: no such file or directory 
Shell :: install watchman windows 
Shell :: how to install prompt-sync in node js 
Shell :: tar exclude directory 
Shell :: tor mac command line 
Shell :: add user to group 
Shell :: pm2 install 
Shell :: cgi directories 
Shell :: conda install pdf2image 
Shell :: git delete pushed commit 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =