LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-01-2021, 01:02 PM   #1
dptzippy
LQ Newbie
 
Registered: Dec 2020
Posts: 28

Rep: Reputation: Disabled
What are the best C-based utilities for the terminal?


I am working on a personal project, where I try to implement the features of a C-based utility, but in my own way, in my own project. I am trying to learn C, and I am learning a lot by reading what others created, and I am looking for some interesting ones to use.

I am looking for command-line based tools, written in C.
I don't know if this is the right forum for my question, but I thought that "programming" would be the appropriate location for a question that pertains to programming. :P

Thanks!
 
Old 08-01-2021, 01:20 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,396
Blog Entries: 13

Rep: Reputation: 4488Reputation: 4488Reputation: 4488Reputation: 4488Reputation: 4488Reputation: 4488Reputation: 4488Reputation: 4488Reputation: 4488Reputation: 4488Reputation: 4488
Many command line tools are written in C.

Why not look up the source.
 
Old 08-01-2021, 01:33 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,104

Rep: Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753
You need to get into the 'gnu' part of gnu/linux aka linux the OS we use here

Nearly all early command line stuff is C or C/C++. You could switch your user to the csh shell instead of bash. All your basic commands go in the shell, and ytou will find extras for C usage but what you will find important is well commented C or C++. Some routines have a very logical flow, except there's a sudden mess in the flow. That often happens when a bug is discovered and has to be patched.

I only wrote Assembler and plc stuff in any bulk, and got to commenting it very often for one simple reason. If I ever was forced back to it, I wouldn't have a clue what I had been talking about, thinking, or doing and there would be a problem. So I needed comments to remind myself, never mind telling others.
 
Old 08-01-2021, 01:37 PM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 1,618

Rep: Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315

This might be the opposite of what you're asking, but perhaps still of interest - it breaks down how the commands from GNU coreutils work: http://www.maizure.org/projects/decoded-gnu-coreutils

 
2 members found this post helpful.
Old 08-02-2021, 01:50 AM   #5
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,205
Blog Entries: 1

Rep: Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565
> What are the best C-based utilities for the terminal?

There's plenty of them; if you're asking for learning purposes, start with true(1) and false(1).
 
1 members found this post helpful.
Old 08-02-2021, 01:46 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,116

Rep: Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687
This is written in C:

https://github.com/MusicPlayerDaemon/mpc

A lot of the newer CLI tools are written in Go or Rust.
 
1 members found this post helpful.
Old 08-02-2021, 11:57 PM   #7
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 240

Rep: Reputation: 193Reputation: 193
Quote:
Originally Posted by boughtonp View Post
This might be the opposite of what you're asking, but perhaps still of interest - it breaks down how the commands from GNU coreutils work: http://www.maizure.org/projects/decoded-gnu-coreutils

This is fantastic! Thank you.
 
Old 08-03-2021, 12:38 AM   #8
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Location: Apples
Distribution: Apple-selling shops, markets and direct marketing
Posts: 1,195
Blog Entries: 30

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
What are the best C-based utilities for the terminal?

Those that I have programmed, myself. Of course.

You have to read the first post to understand that the question is not the question. Which banana is the best, when you only have plums.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Excellent System Utilities: Glances CLI curses-based monitoring tool LXer Syndicated Linux News 0 07-27-2020 09:03 PM
LXer: 179 Color Schemes For Your Gtk-Based Linux Terminal (Gnome Terminal, Tilix, Xfce Terminal, More) LXer Syndicated Linux News 0 07-28-2019 04:50 AM
LXer: How to Use ALSA Utilities to Manage Linux Audio from the Terminal LXer Syndicated Linux News 0 05-15-2018 01:51 PM
What are the most usual ALSA utilities in GNU/Linux based operating systems? stf92 Linux - Newbie 5 11-07-2010 05:51 AM
Utilities and SDK for UNIX-based Applications ve7vie General 1 02-24-2010 10:35 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration