• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 00:50
CET 06:50
KST 14:50
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Rongyi Cup S3 - RO16 Preview3herO wins SC2 All-Star Invitational10SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0
Community News
Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)20Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7
StarCraft 2
General
Oliveira Would Have Returned If EWC Continued StarCraft 2 not at the Esports World Cup 2026 [Short Story] The Last GSL Stellar Fest "01" Jersey Charity Auction PhD study /w SC2 - help with a survey!
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) OSC Season 13 World Championship $70 Prize Pool Ladder Legends Academy Weekly Open! SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Simple Questions Simple Answers
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 509 Doomsday Report Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone
Brood War
General
[ASL21] Potential Map Candidates Fantasy's Q&A video BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Gypsy to Korea
Tourneys
[Megathread] Daily Proleagues Azhi's Colosseum - Season 2 Small VOD Thread 2.0 [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Simple Questions, Simple Answers Current Meta Soma's 9 hatch build from ASL Game 2 Game Theory for Starcraft
Other Games
General Games
Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Beyond All Reason Awesome Games Done Quick 2026!
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread NASA and the Private Sector Things Aren’t Peaceful in Palestine
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
How Esports Advertising Shap…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1637 users

So I got Linux n stuff... now help? :(

Blogs > evanthebouncy!
Post a Reply
1 2 3 Next All
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2009-01-07 21:00:51
January 07 2009 06:56 GMT
#1
I've exhausted my question for this entry, I'll bug u guys later :D /thread

So I'm doing the first example of the textbook now... I ran into trouble.

In Emacs
yada.c:
===
#include <stdio.h>

main()
{
printf("hello, world\n");
}
===

In Terminal
evan@Evan-Box:~/Documents/tryingout$ cc yada.c
evan@Evan-Box:~/Documents/tryingout$ ls
a.out yada.c yada.c~
evan@Evan-Box:~/Documents/tryingout$ a.out
bash: a.out: command not found



nvm got it
evan@Evan-Box:~/Documents/tryingout$ a.out
bash: a.out: command not found
evan@Evan-Box:~/Documents/tryingout$ ~/Documents/tryingout/a.out
hello, world

So what did I do wrong? It seems I could type "emacs" in anywhere on the directory and emacs would run, but my a.out need to be specified by ~/Documents/tryingout/a.out for it to run... hmm

**
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 06:57 GMT
#2
I'll be watching this blog constantly for the next 1 hour until I get answers xD
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
selboN
Profile Blog Joined January 2008
United States2523 Posts
January 07 2009 07:14 GMT
#3
You got a Linux n stuff....
So now you can't play iCCup n stuff...
You can't use Chaos Launcher n stuff...
Poor guy I feel your pain.
At least you won't have virus issues. People don't code viruses for Linux very often.
"That's what happens when you're using a mouse made out of glass!" -Tasteless (Referring to ZergBong)
tec27
Profile Blog Joined June 2004
United States3702 Posts
January 07 2009 07:18 GMT
#4
Why you had to get linux to do C programming I don't know, but ah well

C is made in files that are basically .txt, but different extension (.h and .c). You compile those through gcc and link them and such, so that's what you'll be using mainly. Getting emacs can depend on your distro, but knowing Ubuntu, you probably already have it (I dunno though, never used Ubuntu). Someone more well-versed in C will have to help you with the rest
Can you jam with the console cowboys in cyberspace?
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 07:29 GMT
#5
Thx Tec, my eecs roomate recommended getting a linux for that because he says linux has the more natural compiler and windows has a shit compiler or something haha.
Hi Selbon, I use linux just to learn C, I still have windows.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
datscilly
Profile Blog Joined November 2007
United States529 Posts
January 07 2009 07:33 GMT
#6
I'm using Ubuntu and I find that emacs is not automatically installed. You can easily install it through "Add/Remove.." Applications.
IzzyCraft
Profile Blog Joined June 2007
United States4487 Posts
January 07 2009 07:34 GMT
#7
GNU GCC complier not good enough?
I have ass for brains so,
even when I shit I'm droping knowledge.
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 07:53 GMT
#8
On January 07 2009 16:34 IzzyCraft wrote:
GNU GCC complier not good enough?

:p I have no idea what are you talking about. I have 0 experience, please explain
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
cgrinker
Profile Blog Joined December 2007
United States3824 Posts
January 07 2009 08:12 GMT
#9
They made me get linux yesterday too at school for java.

Here's what you do. Edit the program in a text file inbuntu should come with a text editor. Put the file in the folder that you want to compile in, and then get your compiler up and running. Basically you can do it with the command prompt if you navigate to the right folder and then use whatever C command to run your compiler. I would look in your compiler documentation for that though.


Or run it in windows and feel better about your life because you aren't a open source zealot.
cgrinker
Profile Blog Joined December 2007
United States3824 Posts
January 07 2009 08:13 GMT
#10
Wait if your roommate told you how to do it why didn't you ask him? Just saying.
cgrinker
Profile Blog Joined December 2007
United States3824 Posts
January 07 2009 08:14 GMT
#11
And furthermore isn't C a little archaic? Is this for a class or did you decide that you wanted to make yourself suffer by learning to program in a language that is really really effing difficult?
Slithe
Profile Blog Joined February 2007
United States985 Posts
January 07 2009 08:18 GMT
#12
Out of curiosity, what do you plan on learning C for anyway? Depending on what you want to do, there may be a better language suited for your purposes.
IzzyCraft
Profile Blog Joined June 2007
United States4487 Posts
January 07 2009 08:24 GMT
#13
Well if you're just learning how to program there is probably no better language then C imo and i do believe it's true native linux's support C much better then windows. Anyways what i mentioned is probably the most used compiler used for any C work unless professional. Which can always be done though cmd prompt like alot of things it just doesn't come native to windows.
I have ass for brains so,
even when I shit I'm droping knowledge.
thedeadhaji *
Profile Blog Joined January 2006
39489 Posts
January 07 2009 08:36 GMT
#14
Kernighannn is an awesomee guuyyyyyyyyyyyy had him as faculty @ Pton
hymn
Profile Blog Joined February 2008
Bulgaria832 Posts
January 07 2009 08:37 GMT
#15
Like stated, you make text files with a text editor, doesn't matter if it's graphical or in the console. Then navigate the compiler to the file and compile it.

The extensions in Linux don't matter, while the permissions the files have - DO matter. I mean no matter what the file extension is, you can compile it with a C compiler as long as you have the permissions to do so.
azk he is the north american player but the titan he is the french stars
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2009-01-07 09:02:42
January 07 2009 08:44 GMT
#16
K guys thanks.
Is there anyway to find out if a certain application is on my system?
Say I want to search for starcraft, how do I do that in the terminal?
Now say I want to execute the program starcraft, how do that do that in the terminal?(Just type starcraft I guess? I typed emacs and it ran)
thanks!
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 08:58 GMT
#17
Alrite I just typed emacs in the terminal and it prompted me to install it. SO I guess I'll have emacs now.
Now quesiton is:
Where is emacs? It did not ask me where to put emacs and now I dunno where it is haha

All previous question still pertains.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
thedeadhaji *
Profile Blog Joined January 2006
39489 Posts
January 07 2009 09:01 GMT
#18
alternatives

emacs
xemcas
V
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
January 07 2009 09:04 GMT
#19
If you want to use win, you could get Visual Studio Express which might be a bit more familiar. Emacs, GDB, etc might be powerful, but they are quite different from what a windowser is used to.
To play SC you need to install wine, as there is no linux native version of SC. And why do you want to do everything in the terminal? To manage apps there should be some packetmanager. But I don't know which one it is for your distri.
LiquipediaOne eye to kill. Two eyes to live.
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 09:22 GMT
#20
Hai, I know how to use emacs.
I am not saying I want to play sc, I'm just using sc as an example of a program. I am asking how do I run a program from the terminal. So far my understanding is you just type the program.

For instance I jsut got emacs and to run it I just go
yadayada$Emacs&

and it'll run it for me.
Is my interpretation correct?
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
Rongyi Cup S3 - Group A
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
NeuroSwarm 315
RuFF_SC2 161
FoxeR 48
StarCraft: Brood War
Rain 10075
Sea 4915
Shuttle 57
Hm[arnc] 40
Bale 34
Hyun 19
Shinee 16
Dota 2
monkeys_forever656
febbydoto64
LuMiX1
League of Legends
JimRising 849
C9.Mang0527
Counter-Strike
minikerr26
Super Smash Bros
hungrybox356
Other Games
summit1g6345
WinterStarcraft427
Hui .120
ToD83
ZombieGrub63
Organizations
Other Games
gamesdonequick1524
StarCraft: Brood War
UltimateBattle 93
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• HeavenSC 32
• practicex 4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Laughngamez YouTube
• Migwel
• sooper7s
StarCraft: Brood War
• Diggity6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Scarra1610
• Stunt179
Upcoming Events
RongYI Cup
5h 10m
SHIN vs Creator
Classic vs Percival
OSC
7h 10m
BSL 21
9h 10m
QiaoGege vs Sziky
Dewalt vs Bonyth
Mihu vs TBD
RongYI Cup
1d 5h
Maru vs Cyan
Solar vs Krystianer
uThermal 2v2 Circuit
1d 6h
BSL 21
1d 9h
Wardi Open
2 days
Monday Night Weeklies
2 days
OSC
2 days
WardiTV Invitational
3 days
[ Show More ]
WardiTV Invitational
4 days
The PondCast
5 days
Korean StarCraft League
6 days
Liquipedia Results

Completed

Escore Tournament S1: W5
OSC Championship Season 13
NA Kuram Kup

Ongoing

C-Race Season 1
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Rongyi Cup S3
Underdog Cup #3
Tektek Cup #1
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025

Upcoming

Acropolis #4 - TS4
Escore Tournament S1: W6
Escore Tournament S1: W7
Acropolis #4
IPSL Spring 2026
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.