Questions tagged [utilities]

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

Filter by
Sorted by
Tagged with
3
votes
3answers
726 views

Are there any utilities to quickly add, list and remove command aliases?

I'd like to be able to quickly, on-the-fly add (and list/remove) command aliases so that they persist between shell restarts (as if they were added to .bashrc). Are there any ready utilities/scripts/...
3
votes
2answers
113 views

Unatended script execution in ubuntu terminal

I have installed Ubuntu on a VMWare virtual machine. When I got to installing a VMWare tools, I have stumbled upon a simple question: If I execute a script (perl script in VMWare tools case), is ...
3
votes
2answers
680 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
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 ...
3
votes
1answer
2k views

installing column unix utility on windows

I would like to be able to use the BSD unix utilities: column, join and paste in my Cygwin installation. It seems that they are not available, or I cannot find them. Is there a way to install them so ...
3
votes
2answers
115 views

Select added lines from file

I have two versions of a file where the newer one has some lines added. The files are sorted (think of wordlists) and I want to print out the newly added lines (given file1 and file2). I know how to ...
3
votes
2answers
585 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=...
3
votes
2answers
352 views

When do `sort -k 2,3b` and `sort -k 2,3` differ?

The POSIX description of the -b flag for the sort command is Ignore leading characters when determining the starting and ending positions of a restricted sort key. I can understand the use for ...
3
votes
3answers
3k views

ASCII art generator

I'm looking for an ASCII art generator (text is preferred, but images will do too) in the sl style, but with text instead of trains. Any suggestion?
3
votes
2answers
2k views

Check files for conventions

I need a script that checks and lists all text files for project conventions. With conventions I mean for example: UTF-8 encoding No trailing white spaces Newline at the end of file No not-ascii ...
3
votes
2answers
262 views

Peer to peer~ish LAN storage

I have a distributed application that consists in a main CMS server where "human" users can upload videos, pictures (media content, basically) and a bunch of "players" that play those videos or ...
3
votes
1answer
5k views

Listing a hardrive partition by blocks using LBA

Most hard drive and partition inspection tools seem to list the items using sectors, head.. etc. From another question I was told that these are virtual because they have to be converted from lba, ...
3
votes
1answer
1k 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.
3
votes
2answers
4k views

Phrase Express Equivalent for Linux?

Is there some sort of auto text-insertion program with macros, similar to PhraseExpress for Windows in Linux? In case you've never seen this application it offers the following features: Organize ...
3
votes
2answers
120 views

Output the changes to a log file

If I use tail -f *filename* I get a real nice display of whatever is changing in a given file. However, sometimes I want to be able to search this text or otherwise look it over slowly. Is there ...
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 ...
3
votes
1answer
3k views

alternative for digest -a sha256 command from solaris in linux

I have file from solaris which have digest -a sha256. But this command is not working in linux. I want the alternative for this command.
3
votes
1answer
2k views

How synchronize two disks (or folders) using symbolic (or hard) links (like rsync)?

I'm searching a tool or a shell script or another program to synchronize two or more folders or disks. But it differs of rsync tool, because, I don't want to duplicate the missing file, but do a ...
3
votes
1answer
52 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 ...
3
votes
2answers
128 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 ...
3
votes
1answer
379 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
1answer
209 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
159 views

Colour problem when capturing a png of the top panel of the screen

I want to capture a window as a png from within a bash script, using the window's ID. In this case, the window is the top panel.  Using gnome-screenshot the colours are true, as per this image... (...
3
votes
3answers
670 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.
3
votes
0answers
144 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?
3
votes
0answers
174 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 ...
2
votes
2answers
107 views

cut now has a line length limitation?

I had a script, with a 25,000 character input that I was using 'cut' on: ...\n" | cut -c -$LENGTH I didn't use it that frequently, but it was working (oh, about a year or two ago). Granted, my ...
2
votes
2answers
740 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 ...
2
votes
4answers
736 views

xsel < /tmp/xselection not working in script

I'm trying to use the following script: #!/usr/bin/env bash # Edit xselection in gvim xsel > /tmp/xselection gvim /tmp/xselection xsel < /tmp/xselection But the final line does not seem to be ...
2
votes
2answers
680 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 ...
2
votes
1answer
71 views

Checking the order of items in a shell environment variable

I am wanting to check that a certain directories always appear after other directories in an environment variable. List items are separated by a colon, as with the PATH variable. This is not simply ...
2
votes
2answers
699 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-...
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 ...
2
votes
2answers
1k views

How can I get the version of the pgrep & pkill commands?

I looked at the manpages and there is no -v or --version argument for pgrep or pkill. How can i get some info on the version? I'm asking because on my version of Ubuntu man pgrep is giving me a ...
2
votes
1answer
2k views

How to plot the output of a command

How can I plot the output of this command line with GNUPlot? What should the diagram script look like? I want a histogram. wget -O - -o /dev/null http://www.stackoverflow.com/ | cat | cat | sed "s/&...
2
votes
1answer
631 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
2k views

Is there a difference between gunzip -c and gunzip in terms of system utilization?

Is there a difference between zcat/gunzip -c and gunzip apart from the obvious one that one outputs it to the terminal and the other decompresses it to a file? I'm looking from a CPU utilization ...
2
votes
1answer
60 views

Explain the output of -D rates in GNU find

I did ~/pythonsource1/python2.6-2.6.5$ find -D rates . -type d and got Predicate success rates after completion: [need type] -type d [0.4] [280/4350=0.0643678] -a [0.4] [280/4350=0.0643678] -print ...
2
votes
1answer
782 views

ntop versus mrtg

I'm evaluating tools for measuring network activity and although mrtg seems to be the most highly regarded, I'm really impressed by ntop. Are there any reasons that mrtg is preferred to ntop?
2
votes
1answer
55 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?
2
votes
1answer
122 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,...
2
votes
1answer
70 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 ...
2
votes
2answers
914 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....
2
votes
1answer
3k views

Relation between system calls and shell commands/utilities

In POSIX, Does a system call function often but not always have a command or utility in shell? Is there some rule of thumb about what kinds of system calls have corresponding commands or utilities ...
2
votes
1answer
230 views

Tool to give only the built linux source code

Linux is large complex piece of software. A running kernel in the system would not be using all the code. I'm looking for a tool which can give me the source code needed for the .config I used to ...
2
votes
2answers
124 views

Log new files in a directory

Is there a tool, which lets me know about the last newly created files? The still common way of using a hierarchically file system makes it hard to save files in different places, so sometimes I sort ...
2
votes
1answer
563 views

Is there a text-only equivalent (no curses) of `zenity --question`?

For my mercurial commit hook, I want to run my test cases and be asked whether I really want to commit if any of the tests fail. I'm thinking something like <run-the-tests> || <ask-yes-no>...
2
votes
1answer
229 views

How to change the current directory graphically using the keyboard only?

There was a program named NCD (Norton Change Directory) a few years ago that did a good job at helping me change directory back in the DOS days. This programs displayed a tree, and you could navigate ...
2
votes
1answer
129 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 ...
2
votes
2answers
495 views

Is there a good FOSS utility for converting machine code to assembly or even C?

If I buy a piece of x86 32-bit or 64-bit software but I don't receive the source code, and I need to modify the software, I'll need to convert the machine code back into a high level language or at ...