gcc

compile a shell script

Asked by anasgeorg

I am new to Linux and I want to compile a shell script.
I have create a shell script at my desktop
I opened a terminal and i wrote chmod 755 first.sh
and pressed enter
I have the message "Cannot access 'first' No such file or directory.
What I am doing wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
gcc Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Voicu
Solved:
Last query:
Last reply:
Revision history for this message
Best Daniel Voicu (danielvoicu) said :
#1

Hi. Did you first go on the desktop? If you didn't you can do it by opening a terminal and typing the following:

cd /home/[USER]/Desktop/ (replace [USER] with your username)

then, to make the shell script executable, type:

chmod a+x first.sh

If you have further questions, don't hesitate to ask!:)

Revision history for this message
anasgeorg (anasgeorg) said :
#2

thanks.
It'w okay now