Reply
Old January 7th, 2003 Top | #1
 
XeoNoX's Avatar
OSNN Senior Addict
Joined: December 2001
Posts: 270
Reputation: 20
Power: 99

Default (Linux Newb) How do i execute shell scripts on linux?

How do i run a ".sh" file on linux? How can i compile a ".c" file on linux.

If there are command lines and GUI methods of doing this please tell me both, as i am trying to learn linux.
XeoNoX is offline   Reply With Quote
Old January 8th, 2003 Top | #2

OSNN Folding Team  
Zedric's Avatar
NTFS Guru
Joined: January 2002
Location: Sweden
Posts: 4,012
Reputation: 890
Power: 144

Cool

The C code can be compiled with gcc.

The shell scripts (who won't need a .sh extension because Linux doesn't care about extensions) must have two things:
- First row must be: #!/usr/bin/sh or whatever the path to sh is (or whatever shell you plan to use).
- You must have permission to execute the file. For instance do chmod 755 script-file to set the permissions.


Did I help you? Please use the reputation system. Click the icon on the left!
Proud host of the OSNN.net folding sigs. Want one? Check the folding thread!
http://zedric.no-ip.com/
Zedric is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
dual-boot Vista with Linux (Linux is already installed) tdinc Linux & BSD 1 July 7th, 2007 12:25am
FXP in Linux w0lv3rin3 Linux & BSD 2 March 19th, 2004 2:46am
Help i need, XP AND LINUX Dexter Linux & BSD 13 May 21st, 2002 10:30am
Help i need XP AND LINUX Dexter Linux & BSD 6 May 10th, 2002 10:10pm
free linux shell accts? cam Linux & BSD 2 April 8th, 2002 12:57am