Results 1 to 8 of 8

Thread: Does learning linux commands essential for programming in c

  1. #1
    Join Date
    Mar 2013
    Beans
    5

    Question Does learning linux commands essential for programming in c

    Hi I am a beginner in Linux,having 6 years of Programming Experience in C(With out RTOS,OS Concept)firmware developer, with the Windows OS.

    I Have few Questions...

    1. Does Learning Linux Commands(Shell Scripting and Other Linux related commands for Debian) is essential for Programming under Linux with C
    2. If yes, How much do i need to learn(If u provide Links or Bulleted points whould be very helpful)
    3. Do i need to learn Threading concept(But Again its the application based,I am planning to make 1 application on rasberry Pi(Linux Board,which will have USB,UART,GPIO etc everything inbuilt) as Robotic car,which will have Camera for lane detection,and will be driving the car with some dc motor,through UART i wll be controlling the car wirelessly with x-Bee Controller), does for this sort of application threading is essential

    Your valuable comments are most welcome...
    I am happy to become part of Linux Community
    Last edited by mnbharadwaj; March 14th, 2013 at 08:41 AM.

  2. #2
    Join Date
    Jan 2007
    Location
    Amsterdam, Nederland
    Beans
    811
    Distro
    Ubuntu Development Release

    Re: Does learning linux commands essential for programming in c

    Learning to navigate on the command line would be very helpful I guess. But this is quite easy. When you' ve learned the following commands you can already do a lot:

    cd myfolder (change directory into myfolder/)
    cd .. (change directory one folder up from the present one)
    ./somefile (execute somefile)
    rm somefile (remove somefile)
    cp somefile somedirectory/somefile (copy somefile to somedirectory/somefile)

    And using threading is for small applications not really needed.

  3. #3
    Join Date
    Feb 2011
    Location
    /Earth/India/Patna
    Beans
    147
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Does learning linux commands essential for programming in c

    Hi
    Shell scripting is generally used to automate tasks and interact with the shell. What do you mean when you say programming under Linux with C? Are you going to develop algorithms or write drivers or any other purpose? For developing algorithms you just need to know how to compile C code. For writing drivers you need to need to know a bit more of the shell commands (such as compiling and loading kernel object into kernel ). Have a look at
    http://www.codecoffee.com/tipsforlinux/articles/18.html

    You should use gcc -Wall -lm firstProgram.c for compiling

    For driving the car with DC motor, you can use microcontroller (which can be programmed using C). I am not sure whether threading is essential for x-Bee controller

    Regards,
    Abhinav

  4. #4
    Join Date
    Mar 2013
    Beans
    5

    Re: Does learning linux commands essential for programming in c

    Hi Kramer and Abhinav,

    Thanx for quick reply....It clarified my doubt

  5. #5
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Does learning linux commands essential for programming in c

    Learning to use the command line isn't really necessary for C progamming, but it will come in handy. I've always run all programming tools from the command line. Threading is useful to take advantage of multiple processor cores, which isn't very useful if you're I/O limited, but it can also be good if you have I/O routines that may cause long waits and you don't want to interrupt more time critical parts of your program. You can have for example one thread in a fast loop to control your car based on lane detection and another thread waiting long times for user commands.

  6. #6
    Join Date
    Jun 2007
    Location
    Indiana
    Beans
    97
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Does learning linux commands essential for programming in c

    You will get some great info from this... http://rute.2038bug.com/index.html.gz

  7. #7
    Join Date
    Mar 2013
    Beans
    4

    Re: Does learning linux commands essential for programming in c

    Hi,
    i to have the same problem can some one help me am not a programer but am a charcter designer so can some one help me regarding php commends and scripts

  8. #8
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Does learning linux commands essential for programming in c

    Php? Sounds like a completely different question to me. Better start your own thread. Anyway, what kind of characters? Typographical, mathematical, narrative, role playing game, ...?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •