|
|
![]() |
|
|
Top | #1 |
|
OSNN Senior Addict
Joined: December 2001
Posts: 270
Reputation: 20
Power: 99 |
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. |
|
|
|
|
|
Top | #2 |
|
NTFS Guru
Joined: January 2002
Location: Sweden
Posts: 4,012
Reputation: 890
Power: 144 |
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. |
|
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
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 |
![]() |