Stack Exchange Network

Stack Exchange network consists of 175 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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [utilities]

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

0
votes
1answer
16 views

Pipe viewer logging

Using the pipe viewer (pv) utility, I can visually monitor the data flow going through a pipe. I would however like to be able to log the data flow in a file instead of dynamically viewing it in a ...
0
votes
0answers
37 views

A way to universally “Show in Directory” using default file manager

I need to programatically "Show in Directory" a file (or another directory, but that's less important). I intend to copy the feature from browsers that allows the user to click a button to open the ...
0
votes
1answer
34 views

Tracking all file changes in a unix host

I'm evaluating a tool and I need to identify all files (including system config files) added, changed or removed by this application (it is installed using pip). After installing on a external host, ...
0
votes
0answers
13 views

Traffic Generation

I require to generate TCP flows of various sizes and need to generate them after varying intervals. I also need to modify DSCP value of each packet based on it's flow size. What possible tools can I ...
0
votes
0answers
23 views

Select area on screen with pointer

Is there a command line tool that let one select an area with pointer and print the result to terminal? Much like with various screen capture tools, but I want the coordinates. For example x,y,width,...
1
vote
3answers
40 views

Creating a folder that aggregates files from other folders

I'm trying to organise my directories for different classes such that each of them has a todo folder. something like this: |--classes/ | |--classOne/ | | |--todo/ | | | |--read.pdf | | |--...
0
votes
1answer
7 views

Redirect DB traffic dependent on type of request

I have a Postgres cluster managed by Patroni and want to be able to redirect DB requests to the replica if they are read requests and write requests to the master. Does anyone know of any tools that ...
0
votes
1answer
55 views

List files that are not H264 encoded

I want to convert any files in a large media collection that are not encoded with H264. In order to do that I need a tool to list all the files, I need to convert. There are a lot of files to go ...
0
votes
1answer
52 views

What substitutes Debian's ufw in Arch?

When I use Debian I install ufw then running the following code to unfilter my desired ports: ufw --force enable ufw allow 22,25,80,443 As I think to move to Arch Linux I'd like to ask what ...
1
vote
1answer
28 views

Tool for creating and calling folder structure templates?

Is there a Linux utility for creating templates for directory structures, outside of the scripts packaged with a DE like Gnome or LXDE? (I run openbox and would like to avoid a DE at all costs) There ...
1
vote
0answers
20 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 ...
0
votes
1answer
50 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
1answer
47 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
700 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
56 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
47 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
25 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
48 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: ...
0
votes
1answer
4k 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
53 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 ...
2
votes
2answers
341 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
123 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 ...
1
vote
2answers
348 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
34 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
269 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
258 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 ...
2
votes
3answers
2k 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
37 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
18 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
120 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
381 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
70 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
548 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 ...
7
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
539 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
361 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
752 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
967 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.
2
votes
1answer
468 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 ...
3
votes
1answer
245 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
448 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
725 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
30 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
115 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
62 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 ...