Questions tagged [utilities]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
18 views

Is there a way to convert flac files to ape?

I need to convert flac files to ape. Googled for that topic, but seems like ape file is outdated, so no solution was found. Any tools, ideas to resolve the problem?
41
votes
3answers
88k views

How can I test the encoding of a text file… Is it valid, and what is it?

I have several .htm files which open in Gedit without any warning/error, but when I open these same files in Jedit, it warns me of invalid UTF-8 encoding... The HTML meta tag states "charset=ISO-8859-...
1
vote
1answer
32 views

What's the difference between ledmon and ledctl?

Both are LED control tools released by Intel. https://linux.die.net/man/8/ledmon https://linux.die.net/man/8/ledctl What's their difference? Do I need ledmon to be executed first to run ledctl?
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 ...
0
votes
0answers
7 views

BMC executed 'ipmitool power soft' but host has no reaction

In my understanding, OS seems to need to install ipmitool ( I am not sure ) to receive this command from BMC (? or OS don't need it ?), but I am not sure which package. When BMC send 'ipmitool power ...
231
votes
14answers
317k views

How can I use sed to replace a multi-line string?

I've noticed that, if I add \n to a pattern for substituting using sed, it does not match. Example: $ cat > alpha.txt This is a test Please do not be alarmed $ sed -i'.original' 's/a test\nPlease ...
1
vote
1answer
27 views

What tool can check internet TX/RX status as top/htop?

For processor usage, we can use top or htop. For internet status, I would like to know the current TX/RX status, any command/tool to use?
0
votes
2answers
891 views

Difference between find and GNU find

Consider some common *nix systems (say Debian, CentOS, Arch and Kali). I always used find; I don't recall using GNU find, but from one example I've seen I assumed the syntax of GNU find might be ...
245
votes
3answers
128k views

What is the difference between curl and wget?

I am keen to know the difference between curl and wget. Both are used to get files and documents but what the key difference between them. Why are there two different programs?
8
votes
4answers
15k views

cp or rsync, is cp really worth it?

I hope this does not count as a question without a real answer, as I can't seem to find a good reason to use cp(1) over rsync(1) in virtually all circumstances. Should one typically favour rsync over ...
1
vote
1answer
133 views

Good base converter or using gbase?

Could you suggest a good base converter that also does "signed" conversions? Either gbase does not do it, or I can't see how it's done. What I want to do is give the program an integer, say, -100, and ...
28
votes
5answers
26k views

Setting the window dimensions of a running application

I'm trying to start an application within Ubuntu (xfce or gnome) and via the command line and was wondering if there's a generic way to set the dimensions of a given window of a given app that is ...
2
votes
1answer
55 views

scrypt key calculator

scrypt is a password-based key derivation function that can be tuned to use a large amount of memory. I want a command-line interface to calculate the key given my own values for parameters: password,...
0
votes
0answers
64 views

How to convert xqx files into actual text using a command like xqxdecode?

Let's say I have an XQX file (A printer stream file) that I got from LibreOffice Writer, how can I extract the text from that that file using xqxdecode? After reading the documentation for the ...
0
votes
1answer
18 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 ...
8
votes
2answers
1k views

Finding a file type assuming wrong extension

I have an image archive I keep up. Sometimes, the sites I pull them from reformat the file while keeping the extension the same, most often making PNG images into JPG's that are still named ".png". ...
0
votes
0answers
38 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
42 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, ...
26
votes
4answers
21k views

I try to add passwords to the “pass” password manager. But my attempts fail with “no public key” GPG errors. Why?

I am trying to install Pass: the standard Unix password manager, however, when I try to add passwords to the appliation I get these errors gpg: Kelly's Passwords: skipped: No public key gpg: [stdin]: ...
0
votes
0answers
38 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 ...
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 ...
3
votes
2answers
543 views

Tool to force use FILE instead of RAM

I'm wondering why there is no such tool like ram2swap, similar to cpulimit in parts. E.g. There is program daemon.bin. Let's create temporary swap file ( 1 Gb ): % dd if=/dev/zero of=tmp.swap bs=...
66
votes
9answers
76k views

Is there any option with 'ls' command that I see only the directories?

Sometimes, I need to check only the directories not files. Is there any option with the command ls? Or is there any utility for doing that? EDIT: I'm using Mac OS X, and ls -d gives me . even though ...
0
votes
0answers
31 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,...
129
votes
3answers
615k views

How to list disks, partitions and filesystems in Linux? [duplicate]

In Windows, if you type LIST DISK using DiskPart in a command prompt it lists all physical storage devices, plus their size, format, etc. What is the equivalent of this in Linux?
8
votes
9answers
523 views

What is/are the standard CLI program(s) to manage users and groups?

I'm basically asking about user management from the command line (e.g. on a system where there are no graphical tools available). In the past I've used several different programs to add or delete ...
22
votes
2answers
19k views

Does hexdump respect the endianness of its system?

On my machine I get the following output when I run these commands: $ echo foos > myfile $ hexdump myfile 6f66 736f 000a The output from hexdump is little-endian. Does this mean that my machine ...
1
vote
3answers
41 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 | | |--...
32
votes
5answers
9k views

Why use superflous dash (-) to pass option flags to tar?

To create a tar file for a directory, the tar command with compress, verbose and file options can be typed thus: $ tar -cvf my.tar my_directory/ But it also works to do it this way: $ tar cvf my....
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 ...
19
votes
6answers
72k views

Why is 'df' hanging?

I have recently been having problems running df, where it just hangs. Here's strace output, and in it, you'll see that I killed since it was just sitting there: $ strace /bin/df execve("/bin/df", ["/...
0
votes
1answer
67 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 ...
1
vote
1answer
151 views

Can someone explain what hunzip is for?

I understand what hunspell is for, but I was browsing the source code and the man, and I'm not sure: Does hunzip compress text files or just dictionaries ?
0
votes
1answer
70 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 ...
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 ...
1
vote
1answer
47 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 ...
2
votes
2answers
472 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-...
442
votes
4answers
154k views

What does “--” (double-dash) mean? (also known as “bare double dash”)

I have seen -- used in the compgen command. For example: compgen -W "foo bar baz" -- b What is the meaning of the -- in there?
1
vote
0answers
22 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
vote
3answers
383 views

Use Unix tools to look for a definition block in an XML.

I am using an XML that has definitions in this form - <definition name="ticketOpen" extends="ticketUpdate"> <put name="title" value="Open Ticket" /> <put name="mainForm" value=...
0
votes
1answer
72 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 ...
11
votes
3answers
885 views

Is there a way to make perl -i not clobber symlinks?

A friend of mine points out that if you do: perl -pi.bak -e 's/foo/bar/' somefile when "somefile" is actually a symlink, perl does just what the docs say it will do: It does this by renaming the ...
0
votes
1answer
66 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:
2
votes
3answers
536 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.
0
votes
1answer
91 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
51 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 ...
4
votes
0answers
1k views

What does mt -f /dev/st0 erase do exactly on a tape drive?

What does mt -f /dev/st0 erase do exactly with a (LTO-6) tape drive at /dev/st0? It takes hours and seems to write many times. Does it write random data on the tape several times to delete the ...
0
votes
2answers
593 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 ...
19
votes
3answers
3k views

Universal extractors

With an increasing number of archive/compression file formats, is there a single free/open-source command line tool to rule them all? Perhaps something with a consistent / unified set of flags? (note ...
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, ...