Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [utilities]

small programs used on the command line to do a specific job

1
vote
0answers
10 views

Realigning GPT partitions to 4k sector boundaries?

If I have an HDD with GPT, and the partitions are not aligned to 4k sector boundaries, is there a tool to realign the partitions to 4k sector boundaries? Suppose I have UEFI stuff on the HDD in ...
-1
votes
0answers
20 views

Linux multi-file multi-line text search and replace regex-supported GUI tool

Can you recommend Linux tool (prefer with GUI) with possibility multi-file (recursively with sub-folders) and multi-line search and replace text in files? Something like regexxer but with ...
0
votes
1answer
34 views

Linux tool for http downloading using multiple connections via multiple interfaces

Is there a tool that allows http file download using multiple network interfaces and multiple connections? I'd like to test my overall internet connection speed by downloading a large file via ...
0
votes
0answers
36 views

View simple, bi-directional html in terminal

I have a stardict dictionary which unfortunately uses some html tags. I like to be able to pipe its output to a utility to make it viewable. I don't even necessarily want to have visual effects ...
0
votes
1answer
32 views

How can I get the “Google Response” to a query in the terminal?

I want to be able to get this terse result Google returns for some queries, from the command line: I tried Googler, but it returns this:
3
votes
2answers
580 views

The difference between find and GNU find

Consider some common *nix systems (say Debian, Ubuntu, Fedora, CentOS, Arch and Kali). I use Linux since 2014 but always used find. I don't recall personally using GNU find, but from one example I've ...
0
votes
1answer
30 views

Why pdftops gives extra padding but pdf2ps doesn't?

I tried both pdftops and pdf2ps to convert a pdf figure(no text) into eps. pdf2ps created a ps figure same to the original one, but the ps file produced by pdftops contains an extra white padding/...
3
votes
1answer
43 views

Which programs configure the network based on the settings in /etc/network/interfaces?

I have installed Stretch and I find that NetworkManager gets in my way more often than not, and I would rather familiarize myself with network interface administration at a lower level based on the ...
0
votes
0answers
24 views

send stdin to stderr for a time, then stop after timeout and discard: gnu textutils?

We have a very chatty application which says useful things during startup but then refuses to be quiet (useful logs are sent elsewhere). This interacts problematically with log rotation, snapshotting, ...
1
vote
1answer
42 views

Tell Tab and Space indented files apart

I was using the file command to gather information about some text files (well, XML files, but the XML info did not interest me), but there was one bit of information that I missed in the output: ...
-1
votes
1answer
2k views

How to find the DNS server configured in Ubuntu and networking tools in unix?

I have heard that DNS configuration can only be IP address and not host name. How do I configure DNS server in ubuntu machine. If it should be IP address only then why this configuration shows the ...
1
vote
2answers
42 views

CLI: Editing binary strings

There's a nice CLI binutils utility for interpreting binary files, and outputting legible strings, in a cat-like fashion. It's called strings. If you try to cat a binary file, you'll see a bunch of ...
1
vote
2answers
168 views

Is there any “base” Debian metapackage?

I've used Debian's Raspberry Pi image builder to create arm64 image, but the problem is it's too barebones. Are there any metapackages that installs useful tools, equivalent to Ubuntu's ubuntu-...
0
votes
2answers
77 views

Why does sort -k4nr and sort -k 4 -n -r give different results? [duplicate]

Here is my file, the first line is not part of it (the one with Fname ..) Fname Lname Age Children John Doe 61 2 Mary Jane 32 5 Delta Cross 30 5 Sui Ace 24 1 I want to sort this file ...
0
votes
2answers
183 views

Command similar to 'yes' but that outputs newlines?

Is there a Linux command similar to yes but one that outputs newlines? Something like $ yes enter That outputs \n\n\n\n\n\n Similar too how yes 'foo' outputs foo foo foo
0
votes
1answer
33 views

How to get the information about the status of data receiving and sending in ethernet?

Is there any tools to get the information about status of data receiving and sending in Ethernet (Real-time information is better, GUI tools is better)? The information includes: sending and ...
0
votes
1answer
109 views

crunch wordlist generation with all combinations

I'm trying to generate a wordlist in order to use it to bruteforce my own Truecrypt container. I do know parts of the password, its built up using blocks of other known passwords to increase length, ...
0
votes
2answers
148 views

Is there a fp8 (Fast PAQ) compression utility for linux?

I'm trying to compress a large archive of similar JPG images. The best compression algorithm I've found so far is fp8. In this question I show my tests and ask for better options. But fp8 is the best ...
0
votes
1answer
13 views

Tool for easy file-update and restore

I am looking for a commandline-tool that provides me functionality for local udating single files. So I am not talking about remotely updating a bunch of servers. But update some files and have an ...
0
votes
0answers
27 views

Create a pseudoterminal

I can create plain FIFOs (named pipes) using mkfifo. Is there a common utility that I can use to create pseudoterminals?
1
vote
2answers
789 views

Main difference between tr (translate) to sed and awk

AFAIC both sed and awk are general purpose text processing utilities with whom a user can get quite similar results, in a slightly different syntax: With both, a user could add, replace/translate and ...
0
votes
1answer
36 views

Write scripts as stream-filters or parameter-only tools? [closed]

I'm writing a set of shell helper scripts - a kind of toolbox for simple data/text_files processing. In it there will be some simple tools like, for example: dateToTimestamp or showParagraphHeads. ...
1
vote
0answers
14 views

What's the difference between these two calls to `du -sm`? [duplicate]

I have a directory that I want to find sizes on. When I run the two following commands, I get very different results. I expect the second to produce results like the first. Any ideas why? $ for d in `...
15
votes
3answers
1k views

head eats extra characters

The following shell command was expected to print only odd lines of the input stream: echo -e "aaa\nbbb\nccc\nddd\n" | (while true; do head -n 1; head -n 1 >/dev/null; done) But instead it just ...
1
vote
2answers
86 views

Filter tasks scheduled for the future in Taskwarrior

My custom report in Taskwarrior is set to the following: report.custom.filter=status:pending I would like to change this so that tasks scheduled for the future are hidden until their start date. For ...
3
votes
2answers
270 views

Should I use mutually exclusive options on my command line tool?

Writing a CLI tool, I'm facing a conundrum. The tool is supposed to detect faces in images and blur them automatically. However, sometimes only one of those things should be done to allow marking ...
1
vote
3answers
61 views

Take a command that modifies a file inline and make it accept stdin/stdout

Let's say I have a command foo that accepts a file and performs some transformation in that file (something similar to sed -i). And let's say that this command does not accept the classic "read from ...
1
vote
2answers
65 views

Command-line tool for determining validity of bracket term

I'm looking for a tool which automatically checks whether a LaTeX document is a correct bracket term. It's very easy to write such a tool but before I do, I want to know whether one already exists. ...
2
votes
2answers
498 views

How to use globs/wildcards when the -C option is used in tar command?

My directory structure is as follows : /home/workspace/build/ /home/workspace/js/jai.1.js /home/workspace/js/jai.2.js /home/workspace/js/jai.3.js /home/workspace/js/jai.4.js I want to tar all js ...
6
votes
3answers
1k views

tr analog for unicode characters?

I need internationalized utility that does the same thing as tr: gets character from stream and substitutes it with a corresponding character. Not a particular case solution like lower-to-upper, but a ...
1
vote
3answers
459 views

How to transpose a text file on character basis

There are some tools like datamesh to transpose a matrix in a csv file, but I want to exchange rows and columns character based. So a file abcde fghij klmn opqrs should become afko bglq chmq dinr ...
0
votes
1answer
287 views

How to perform argument parsing in C? [closed]

I am trying to write an utility that runs on linux Operating System. I am planning to develop it using C. I have lots of doubts striking me. I would like to ask some of it. Questions 1: How can I ...
-1
votes
2answers
531 views

What are the tools in /tools folder?

In the kernel source tree /tools, there are many submodules. What are the tools available in this folder? I know perf tool. What else are they? How to build them? Are they, by default, integrated into ...
2
votes
1answer
735 views

Taskwarrior: Recurring tasks that are due relative to the day of recurence

I would like to create a task in taskwarrior that repeats every day and is due every day or the day after. Is that possible? Didn't find anything on the net or the documentation.
0
votes
1answer
376 views

Are there any cli tools for drawing graphics on the screen during an X session?

Are there any command line tools that can draw simple graphics on the screen, then be able to later clear/erase those drawn graphics? It would be useful to highlight a section on the screen or ...
2
votes
1answer
169 views

How to override warning in Taskwarrior?

I have the following output whenever I issue task: TASKRC override: /path/taskrc TASKDATA override: /path/.task It's because I put the config and data files in non-default external location ...
3
votes
3answers
345 views

How to add multiple tasks in one command on Taskwarrior?

How can I add multiple tasks in one command line on Taskwarrior? I'd like to achieve something like: task add task1 tag:tag1, task2 tag:tag2 I think there should be a delimiter to separate tasks.
1
vote
2answers
562 views

Use ffmpeg to get PCM/Red Book/CDDA without WAV headers?

I've got a side project going that requires files which are just the samples from uncompressed PCM audio. My plan was to first convert everything to WAV, then use my own scripts to strip off all the ...
1
vote
0answers
29 views

What's a good and free ER diagramming tool for Linux that is approachable via a web interface?

A web based ER diagramming tool. One that you can install on Linux and afterwards approach it via a web interface. Preferably Open source. Optional: connectivity with the database.
44
votes
8answers
4k views

Why are POSIX mandatory utilities not built into the shell?

The purpose of this question is to answer a curiosity, not to solve a particular computing problem. The question is: Why are POSIX mandatory utilities not commonly built into shell implementations? ...
3
votes
1answer
103 views

Does a utility exist to show the output of a command in a GUI as well as to the console?

I'm thinking it would be similar to tee, except with a popup window instead of a file. Here is an example of what I mean: echo "hello world" | tee file Puts the output in the file and in the console ...
3
votes
1answer
54 views

Is there any tool that shows live changes to all files in the log folder?

I am currently debugging a weird problem on my server and therefore I am searching for a tool that is monitoring the standard log folder /var/log/. Any changes to the existing files should be printed ...
11
votes
4answers
3k views

Get line number from byte offset

Having byte offset for a file. Is there a tool that gives line number for this byte? Byte count starting with zero, as in: first byte is 0 not 1. Line number starting with 1. File can have both ...
5
votes
1answer
429 views

Tool to automatically extract sub-images that are inside an image: sub-images separated by whitespace

Is there a tool/script which can extract images (save them as separate image files) inside an image, each sub-image is separated by whitespace? This: Would result in 3x: Image Source
4
votes
1answer
127 views

Comparing .wav samples from command line

As a part of our project we should classify sound samples (stored as .wav files). All sample is the same, just pure speech (like a Skype test call). The process is the following: a reference wav, ...
1
vote
5answers
705 views

Is there a shell command or utility for caching process output?

Hope this is the right place to ask. Is there a unix tool that works similarly to this? # invokes echo, saves to cache (using command with arguments as key), returns "hi" cache 10 echo hi # wait 2 ...
3
votes
0answers
106 views

Can you do url (percent) encoding with the recode terminal tool

You can use the recode tool to do html encoding and decoding like so: recode html..ascii Can you also do URL-Encoding (percent encoding) with it?
6
votes
2answers
2k views

Unix way to send/transmit raw Ethernet frame

I want to send raw Ethernet data, kind of like netcat for Ethernet instead of TCP. What is the simplest way to do this on Unix? So far it looks like I need to write my own tool.
15
votes
4answers
1k views

Is there a tool to find out the general state of the machine? [closed]

I am longing for a tool for linux that would give me a general idea what is happening on a machine. Example information I am looking for: What daemons are installed (www, db, others) Config locations ...
0
votes
2answers
478 views

Tool to replace block in a file

Most configuration management software tools have a way to replace a block in a file. Example: SaltStack: blockreplace Ansible: blockinfile I want exactly this, but without the overhead of these ...