Questions tagged [utilities]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
836 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
140 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 ...
2
votes
1answer
67 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
4k 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
558 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
192 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, ...
2
votes
8answers
1k 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
128 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?
5
votes
2answers
4k 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
612 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 ...
0
votes
1answer
96 views

unix utility to merge files without space overhead (cat *.txt > merged.txt;rm *.txt in one step) [duplicate]

Is there a utility that dumps a file line by line to stdout and deletes those lines? I have a number of large files that I want to merge via cat. Of course I could do cat *.txt > merged.txt ...
1
vote
1answer
78 views

Modify xml uttribut value of an xml document by selector

I have an xml document containing an element witch I can select with stkconfig>Video[width]. So, I want to modify the value of this element. There is a CLI utilities for this?
1
vote
1answer
2k views

A generic command to extract archive files [duplicate]

There are many archive formats: tar, tar.gz, tar.bz2, zip, rar, tar.xz and more. I would like to have a single command that would determine the type of archive I give to it as input and extract the ...
2
votes
2answers
795 views

Sorting and Grouping Domains and Subdomains

Is there a better way of sorting and grouping domains and subdomains together? For e.g., the file list containing morefu.sub1.foo.com www.foo.com bar.foo.com sub1.foo.com fufu.isub1.foo.com foofoo....
3
votes
0answers
154 views

How to render geojson locally

I have some visualizations which consists of data in the GeoJSON format. I would like to render the features to a png file. There are some sites which provide this functionality. I have for example ...
1
vote
0answers
22 views

Command mapping utitly

I need a way to alias commands depending on their directory. One of the use case is to be able to call different version of ghc-mod from Emacs depending on which project am working on. I can't see set ...
3
votes
2answers
1k views

uname -p -i are unknown

Why does this happen? Everything else printable with uname is shown. I am not looking into fixing this. Even the manual page of uname says that it's a common output. I just want to know why.
0
votes
2answers
592 views

How to use sqlformat tool with pgAdmin

I am trying to add external SQL formatting utility to pgAdmin. There is an option available in pgAdmin3 in Preferences -> Query tool -> Query editor called external formatting utility I set up ...
2
votes
1answer
45 views

performance comparison of multiple commands excutions

I've got three different programs written in three different languages, and I'm trying to compare their performance in terms of runtime, and memory consumption. What I'm looking for is some command ...
1
vote
1answer
581 views

Why does the factor command produce nonsense on an RSA modulus?

Ok, so I think I may have found a flaw in... something. I honestly don't know. This is such a weird scenario. I was attempting to break very small asymmetric (RSA) encryption, just as a Proof of ...
0
votes
0answers
35 views

Bash wrapper keeping logs of each command give or take a UI-like experience

Is there any tool that provides the ability to execute a series of bash commands (think cloud server setup), keeping a formatted log of each command along with its output? It would be somewhere ...
1
vote
0answers
246 views

Does anyone use Netem anymore? Alternatives?

When simulating an IP network you can use Linux built-in network emulator Netem. Together with bridge-utils of course. Simulating packet drop, duplicate packets, jitter et cetera. Is anyone using ...
1
vote
2answers
436 views

How to use cloc to find lines of code in a debian package

cloc - statistics utility to count lines of code Now the manpage mentions that it can be used to count lines of code of a tarball cloc perl-5.10.0.tar.gz Now a debian package is just like a ...
7
votes
1answer
1k views

Why is the rename utility on Debian/Ubuntu different than the one on other distributions, like CentOS?

On CentOS, the rename command uses two simple strings, from and to. rename from to file... while on Debian/Ubuntu it uses a perl-style regular expression. rename [ -v ] [ -n ] [ -f ] perlexpr [ ...
4
votes
1answer
3k views

free command output: gentoo (redhat?) vs debian

I noticed there is a difference between outputs of free command: On debian: $ free -h total used free shared buffers cached Mem: 4.0G 3.4G ...
1
vote
1answer
29 views

Packages and the like for configuring new systems [closed]

I'm faced with the prospect of moving from a server which has been configured previously with loads and loads of the sorts of tools you forget about day-to-day as you do various tasks (I'm talking ...
1
vote
1answer
61 views

Is there any text search tool preloaded with well-known regexes?

I would like to know if there is any command line tool to search text files preloaded with some well-known regexes (IP, email, date, path, url, xml tags, etc) so you could do something like: grep -A ...
1
vote
1answer
42 views

Looking for an external command that can do the same thing as echo

echo is bash builtin. Is there an external command which can do the same thing as echo? (may do more)
2
votes
1answer
556 views

How can I make fullscreen cross hairs appear centered on the pointer?

How can I make fullscreen crosshairs, centered on the mouse, appear on my screen? I read a lot of science papers with graphs that I want to quickly be able to see what feature is horizontal/vertical ...
3
votes
2answers
3k views

Is there any way to hide kernel threads from ps command results? [duplicate]

When I type ps -ef , there are lots of special kernel thread processes showing. I am not interested in kernel threads; I am only interested in user process/thread. Is there a way that I can hide the ...
27
votes
3answers
6k views

What is the purpose of square bracket executable

I see there is an executable called "[" in /usr/bin. What is its purpose?
4
votes
2answers
92 views

log of open and close time of a program

I want to get the total time a program was run daily for personal logging (from start to close even if it is in the background). For example: Firefox. Is there a system log that keeps track of open ...
0
votes
0answers
42 views

What utilities will allow me to see how much network data a process has used in a session?

I need to know how much network data each program/process are using on my machine. There are great tools (like nethogs) to give me information on current usage. However, it does not give me ...
34
votes
6answers
7k views

How to trick a command into thinking its output is going to a terminal

Given a command that changes its behaviour when its output is going to a terminal (e.g. produce coloured output), how can that output be redirected in a pipeline while preserving the changed behaviour?...
1
vote
2answers
750 views

How do I install `gresource` on Fedora?

I'd like to change the background image of my login screen (Fedora 23, GNOME desktop). The Arch wiki has a write-up on how to do it. Basically it involves extracting the .gresource binary that lives ...
2
votes
1answer
126 views

Why doesn't cc (the C compiler) and similar utilities use standard streams by default? [closed]

Background If think most of us agree that filters and pipes are the very foundation of Unix systems. Pipes and filters are very powerful tools. Almost all Unix utilities use the standard input and ...
1
vote
1answer
2k views

Password protect a PDF file with AES 256

I can't find a free/open-source software that password protects my PDFs with AES 256. pdftk just offers 128-bit strength.. In fact I didn't find any other tool that encrypts PDFs. What tool may I ...
5
votes
5answers
25k views

Where is the log of used commands in Linux?

In Linux, generally we use a lot of commands and it is difficult to remember all of them. history command provides the list of commands we used previously but its limit is less. New commands are ...
0
votes
1answer
302 views

Languages to use for console tools - Go, Rust, Javascript? [closed]

I'm planning to write a data cruncher command line tool, I'm considering Go, Rust and Javascript. But I'm afraid of jeopardising the project by using something not stable enough or painful to deploy. ...
0
votes
1answer
552 views

Installing the BlueZ Utilities

I need to install the bluez utilities. On this site there are listed six utilities in a table, so I downloaded the latest bluez package bluez-5.33.tar.xz and extracted it. But how can I install these ...
3
votes
2answers
109 views

nm program - why such name?

Where does the name of nm come from? The IEEE standard defines nm as: nm - write the name list of an object file Is nm an abbreviated form of word name/names? Or does it have a completely different ...
1
vote
3answers
1k views

Interactive cd (directory browser)

Sometimes when working in deeply nested file hierarchies (e.g. Java code) I find it annoying to traverse from one leaf to another. My usual cd-up looks like: $ cd ../../.. # Oops, not enough $ cd .. #...
1
vote
1answer
219 views

TUI Tool to change directory permission rules?

There are some strangers to Linux who need to use it in terminal mode but they are helplessly limited to accept that using chmod and chown is dead simple. They would be satisfied only by a tool that ...
1
vote
1answer
138 views

Is there a tool that automatically inserts and updates a script header block for e.g. shell or Python scripts?

I found scripts by a former admin who scripted quite nice things with Bash or Python. All his scripts are well formatted and equipped with a always similar looking "script header" or "code header", I ...
2
votes
3answers
6k views

Why are file names surrounded with “â” sign?

After adding alias rm='rm -i' to my ~/.bashrc file (because, when I removed a file, it wasn't asking for confirmation), file names are surrounded with "â" signs as in the example below: rm: cannot ...
11
votes
2answers
8k views

sponge from moreutils - what's the difference to shell redirect? useful examples?

> brew install moreutils ==> Downloading https://homebrew.bintray.com/bottles/moreutils-0.55.yosemite.bottle.tar.gz #################...
3
votes
2answers
2k views

How to read lsusb?

What is the vendor id and what is the product id in the output of lsusb? ➜ lsusb Bus 001 Device 018: ID 0781:5576 SanDisk Corp. Bus 001 Device 011: ID 0e0f:000b VMware, Inc. Bus 001 Device 001: ID ...