• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 06:56
CET 12:56
KST 20:56
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
$21,000 RyongYi Cup Season 3 announced (Jan 22-Feb 7)1Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns6[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1822Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises3
StarCraft 2
General
Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises Chinese SC2 server to reopen; live all-star event in Hangzhou Starcraft 2 Zerg Coach
Tourneys
$21,000 RyongYi Cup Season 3 announced (Jan 22-Feb 7) WardiTV Winter Cup WardiTV Mondays SC2 AI Tournament 2026 OSC Season 13 World Championship
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes Mutation # 504 Retribution
Brood War
General
I would like to say something about StarCraft BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion StarCraft & BroodWar Campaign Speedrun Quest Data analysis on 70 million replays
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Awesome Games Done Quick 2026! Nintendo Switch Thread Stormgate/Frost Giant Megathread General RTS Discussion Thread Should offensive tower rushing be viable in RTS games?
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 Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Trading/Investing Thread The Big Programming Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Psychological Factors That D…
TrAiDoS
James Bond movies ranking - pa…
Topin
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1652 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
Next event in 16h 4m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 212
StarCraft: Brood War
Britney 32438
Rain 3456
PianO 1804
Shuttle 1033
actioN 357
Mini 349
Light 338
Stork 316
Snow 271
EffOrt 226
[ Show more ]
BeSt 222
Soma 175
Hyun 158
Killer 138
Rush 124
ZerO 120
Mind 101
Pusan 95
Barracks 87
Sharp 70
soO 64
JYJ 58
ToSsGirL 38
Larva 34
Dewaltoss 31
NotJumperer 29
zelot 25
Yoon 23
Noble 18
JulyZerg 17
[sc1f]eonzerg 12
HiyA 12
Bale 9
ajuk12(nOOB) 9
Dota 2
Gorgc3665
Fuzer 242
XcaliburYe140
NeuroSwarm84
Counter-Strike
allub145
Other Games
singsing1429
B2W.Neo907
Sick283
XaKoH 171
MindelVK16
Organizations
Other Games
gamesdonequick28954
StarCraft: Brood War
lovetv 7
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 4
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1651
League of Legends
• Jankos1563
• Lourlo816
Upcoming Events
SOOP
16h 4m
SHIN vs GuMiho
Cure vs Creator
The PondCast
22h 4m
Wardi Open
1d
Big Gabe XPERIONCRAFT
1d 1h
AI Arena Tournament
1d 8h
Sparkling Tuna Cup
1d 22h
WardiTV Invitational
2 days
IPSL
2 days
DragOn vs Sziky
Replay Cast
2 days
Wardi Open
3 days
[ Show More ]
Monday Night Weeklies
3 days
WardiTV Invitational
4 days
WardiTV Invitational
5 days
The PondCast
5 days
Liquipedia Results

Completed

Proleague 2026-01-08
WardiTV 2025
META Madness #9

Ongoing

C-Race Season 1
IPSL Winter 2025-26
Escore Tournament S1: W3
OSC Championship Season 13
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Thunderfire SC2 All-star 2025
Big Gabe Cup #3
Nations Cup 2026
Underdog Cup #3
NA Kuram Kup
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.