Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

EASY: C scripts and tar.gz

I have two easy questions...
1.) How do I compile C source code scripts. How do I modify them?
2.) How do I unzip tar.gz files?
thanks for your help
0
ciris
Asked:
ciris
1 Solution
 
minarCommented:
To compile C programs, you use gcc
  gcc -o myProgram myCode.c
this will compile myCode.c into myProgram. For programs with
many files it is usually easier to use the "make" utility.
Running "make" reads the file Makefile and uses that as rules
to build the program.

To unzip tar.gz files, do
  tar -xzvf foo.tar.gz
You can leave out the -v (ie, just tar -xzf) if you don't want
to see the files list as you unpack.

0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now