Skip to main content

Questions tagged [utilities]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

Use underscore or hyphen for a CLI utility name?

I'm creating a CLI utility which is aimed at *nix OS:es. Let's call it 'Super CLI Project'. Looking at the latest POSIX Issue 7, 2018 edition - https://pubs.opengroup.org/onlinepubs/9699919799/ - ...
Beamie's user avatar
  • 103
1 vote
1 answer
66 views

mirror a directory tree by hard links for file contents and symlinks for directory structure

what is the best way to mirror an entire directory, say original/, to a new directory, say mirror/, which has the structure mirror/data/ and mirror/tree/, such that every file in the directory ...
windfish's user avatar
  • 113
1 vote
2 answers
128 views

Looking for a tool that creates plain text tarball from set of files, they can be mailed in email body

I'm looking for a command line tool that takes a tarball, uncompresses and unpacks it, and turns the contents into one contiguous file, comprised of lines that are a maximum of eighty characters wide, ...
Joselin Jocklingson's user avatar
0 votes
1 answer
77 views

Command or tool to interpret and read asciidoctor syntax through terminal?

For a .adoc file to write documentation, it based on the asciidoctor syntax, is possible through GUI use either VSCode or AsciiDocFX to see a preview. Therefore the asciidoctor syntax is rendered/...
Manuel Jordan's user avatar
0 votes
1 answer
92 views

File backed, key value store implemented with posix utilities

I imagine this is a pretty common thing to do. Which posix utility for reads, which for writes? What are the most common file formats to do this with? Is inplace modification possible? My first ...
Tom Huntington's user avatar
0 votes
0 answers
23 views

Tool to show memory that would be freed if I terminate a process and its sub processes?

I know that it's a bit tricky to show the memory that a process is using due to the fact that there is memory shared. But when I look at memory diagnostics, it's normally because my memory is getting ...
Peter T.'s user avatar
  • 123
0 votes
1 answer
110 views

How to remove tii.la cookie in Linux?

I'm using Brave browser ver 1.56.20 in MX Linux 21.3 (Debian 11 based), how can I remove cookies in Brave? Tried to use remove icon, it does not work, seems it's a known bug in Brave (over a year old ...
michaelbr's user avatar
  • 111
2 votes
1 answer
467 views

Automate securing of Linux services ? (cf. systemd-analyze security)

When you run a command such as systemd-analyze security (or a program such as lynis which, for services, runs systemd-analyze security), you may get, like I do, a list of 'unsafe' or 'exposed' ...
Glendalough's user avatar
3 votes
0 answers
150 views

Are there any Linux distros with a preconfigured user-friendly shell environment?

I see so many Linux distros all around, and they all come with different look & feels and their own set of pre-installed GUI tools for most standard tasks. The default shell environment, however, ...
carlfriedrich's user avatar
1 vote
0 answers
86 views

lscpu list different max cpu freq

Is this a bug from lscpu? How to fix it? ~$ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: ...
Mark K's user avatar
  • 905
0 votes
1 answer
140 views

Confused about java -version [duplicate]

For every program/utility on Unix, I would type the name of the program followed by --version to check its version, like so program --version If I understand correctly, the double dash -- is used to ...
user avatar
2 votes
0 answers
283 views

Is there a tool that will tell me WHY I got Permission Denied?

There are several reasons you might get a "Permission denied" error in unix. Some of them are not very obvious -- for example if a parent (or grandparent, great-grandparent, etc.) directory ...
foobarbecue's user avatar
0 votes
0 answers
568 views

why setpci failed?

The setpci command failed, is that because of BIOS/device? sudo setpci -s 02:00.0 ECAP_AER+8.l=00100000:00100000 pcilib: sysfs_write: write failed: Operation not permitted 02:00.0 Network controller: ...
Mark K's user avatar
  • 905
0 votes
1 answer
149 views

How to identify PDF pages that contain highlighted text via command-line

Assume a pdf document that contains text highlights on pages 1, 3 and 14. Is there a Linux command-line tool (or a set of tools whose output can be piped to each other) that can report the page ...
Michael Gruenstaeudl's user avatar
0 votes
1 answer
297 views

Soft link will pass filename as 1st parameter to target?

https://github.com/adurbin/iotools Original usage is: ./iotools rdmsr x xxxxx when I doing: ln -sf iotools rdmsr then I can do: rdmsr x xxxxx Why?? because when doing soft linking, it will pass the ...
Mark K's user avatar
  • 905
0 votes
3 answers
6k views

How to visualise eml files?

I have many email archived in eml format. The problem is that I can't view them without installing an email client and importing eml files, which is tedious and not what i want. Ideally, I would like ...
GnuSam's user avatar
  • 41
2 votes
0 answers
356 views

How to know CPUxx is which socket?

I have two sockets (CPU), How to know CPU41 as below belongs to which CPU/socket? hostname kernel: CPU41: Package temperature above threshold, cpu clock throttled (total events = 438285593)
Mark K's user avatar
  • 905
1 vote
1 answer
293 views

Determine the library or libraries used by the /sbin/init and /bin/sh in FreeBSD

How to determine the library or libraries being used by the /sbin/init and the /bin/sh in FreeBSD? Is it dynamically linked or static?
ordinary_guy's user avatar
2 votes
1 answer
2k views

Check what media is now playing from the command line

My desktop environment seems to know what music I am playing. I want to be able to check that from the command line too. Is there a tool or dbus query that will tell me what music or media is ...
Sam Watkins's user avatar
0 votes
1 answer
323 views

Script to determine which shared libraries are not used?

I don't want to reinvent the wheel, but I'm looking for a script that can run through and list out shared libraries that are not used. The idea would be to ldd everything to create a list. From there,...
user3161924's user avatar
1 vote
1 answer
512 views

Configure an interface to respond to all IP addresses, even external ones?

Edit 2: Found a tool upon closer inspection of documentations. Situation: Loving the FakeDNS tool to get a machine to reply with its own IP address to all DNS requests made by a malware sample. But ...
Timothy Wong's user avatar
0 votes
1 answer
120 views

Sum sizes of certain folders/files with inclusion and exclusion patterns

I'm looking for a tool that gives me the total size on disk of certain folders and files. It should be able to unambiguously include or exclude items and all of their children (folders and files in it)...
ostrich's user avatar
  • 11
2 votes
3 answers
591 views

Are they commands or utilities?

I'm trying to figure out the correct term(s) for Unix/Linux "commands." Specifically, I have always understood that technically commands (e.g., cd) are built into the shell, and that other &...
Mark Pauley's user avatar
1 vote
1 answer
144 views

Is there a commonly used environment variable or configuration setting for enabling widespread application verbosity?

Sometimes I write scripts where I want every called application to be verbose as can be for the sake of logging. This often includes typing --verbose quite a bit. Other than the -v and equivalent --...
qq4's user avatar
  • 519
0 votes
1 answer
566 views

What is the alternative for bccmd?

I am trying to learn about Bluetooth stack. In many blogs, they mention a tool called bccmd. But when I download the package bluez and compile it, I didn't found it. It seems it was in the tools ...
kimaNO's user avatar
  • 37
1 vote
0 answers
48 views

Are there any graphical / text-based user interface calendar programs which use the UNIX calendar utility format to store entries?

On some UNIX systems, there is a calendar utility which acts as a reminder service and which reads entries from files specified in tab-separated format, e.g.: 01/01\tNew Year's Day 01/02\tBank holiday ...
user92403's user avatar
3 votes
0 answers
384 views

Xorg specific tool to probe displays for PCI bus info?

This question came close to what I was looking for, but missed the mark. After some adventures trying to get device names as displayed from xrandr into xorg.conf I began to wish that there was an X11 ...
SeligkeitIstInGott's user avatar
0 votes
3 answers
1k views

ls -d command only returns `.` eg, and no child directories

I have standard ls installed, I also have lsd installed, which is a nerd-font drop-in replacement for ls. I mention this because the error may have something to do with the alias. For testing right ...
Andy T's user avatar
  • 125
1 vote
0 answers
23 views

Is there a system / btrfs tool whick will provide me with the record location for a specific inode number in a btrfs volume?

I want to find the location of the record data for a specific inode. Is there a system tool or a btrfs tool which will provide me with at least it's bloc number ?
Camion's user avatar
  • 294
0 votes
0 answers
560 views

Automatically Kill high-resource utilization programs

In our company, we use a headless Linux machine as development machine. However, sometimes users use up all resources (CPU, RAM) on that machine, which influences the work of others. Hence, we want to ...
Green绿色's user avatar
0 votes
3 answers
5k views

How do I run an package after using apt-get to install it?

I am currently using Linux (super new to this) and used apt-get to install a (package? app?) and am wondering how I am supposed to run it. I can't seem to find anything online as to how I can run ...
Max's user avatar
  • 1
0 votes
1 answer
392 views

Explanation of pipeline containing egrep, tr and expand

Can someone explain the following pipeline to me? I am trying to filter a list of ports in services so that only the unique port names are listed out. What exactly do expand and tr do, and what does ...
pinky's user avatar
  • 37
1 vote
3 answers
65 views

Restarting poem line numbering any 4 lines after a blank space

This is related to very interesting answer given here: Any text utility or hack to numbering poems lines omitting certain numbers? awk 'FNR % 4 == 0 { printf "%6i %s\n", FNR, $0 ; next }; {...
Dingo's user avatar
  • 329
0 votes
1 answer
194 views

Extract 'salt' from mcrypt encrypted file

I have some mcrypt(1) encrypted files, doing file on them ici$ file myfile.nc myfile.nc: mcrypt 2.5 encrypted data, algorithm: rijndael-128, keysize: 32 bytes, mode: cbc However, I'd like to extract ...
Déjà vu's user avatar
  • 646
4 votes
2 answers
1k views

How to continuously display the newest version of an image file on Linux?

I need program that reads an image from the disk location /home/me/image.png, displays it on the screen in a window and then refreshes the window whenever there is a change to the image located at /...
lsusr's user avatar
  • 213
2 votes
1 answer
769 views

hdparm secure erase with progress updates?

Does anyone know of a clever way to receive any sort of progress status updates using hdparm secure erase? Ideally the end result would be something like dd's status=progress attribute.
andDevW's user avatar
  • 121
0 votes
2 answers
298 views

Any text utility or hack to numbering poems lines omitting certain numbers?

My goal is try to see if there are common text utilities in linux that can be used to number lines of poems like this: OF Mans First Disobedience, and the Fruit Of that Forbidden Tree, whose mortal ...
Dingo's user avatar
  • 329
-1 votes
2 answers
2k views

how to install blackarch tools in debian based distro?

Black Arch have wide ranges of tools, we can install all those tools in arch based linux with strap.sh. Offsec repo does not have this much tools. Please share some solution to install those tools ...
Zishan Ahamed Thandar's user avatar
0 votes
2 answers
711 views

Tool to detect and give info of compression method

What is utility tool to detect and give info of compression method (preferably more info) in any mean (CL or GUI) ? IOW what windows 7z tool equivalent for Linux, giving info easily in GUI?
user avatar
-6 votes
1 answer
349 views

What is umask command for? [closed]

What actually is umask command for in *nix OS? How is its working mechanism and usefulness ? e.g $ umask 022 Thanks much before
user avatar
5 votes
7 answers
2k views

How can I see if a consecutive number name file is missing some file? [duplicate]

If I give ls -1 I get like this, file_0001.jpeg file_0002.jpeg file_0003.jpeg file_0004.jpeg file_0005.jpeg file_0006.jpeg file_0007.jpeg file_0008.jpeg file_0009.jpeg file_0010.jpeg file_0011.jpeg ...
Eduard Florinescu's user avatar
-1 votes
1 answer
116 views

Is not there a program / library to parse common unix utilities text based output, such as lshw, iwlist, dmidecode?

I have a .net core application that makes use of several unix utilities to query hardware data, such as lshw, iwlist, dmidecode. lshw supports json output, so it's not a problem. I currently write my ...
Veverke's user avatar
  • 368
0 votes
0 answers
203 views

What does (or did) the name "feh" represent?

To me, the name of the feh image viewer is not memorable enough for me to recall it when I need it. I feel that if I had some context, I'd be able to remember it better. What, if anything, does the ...
Steve V.'s user avatar
  • 965
0 votes
0 answers
38 views

xargs-like command templating for argv

Is there a common utility that is sort of like xargs, but operating on arguments instead of stdin? For example, something like: $ fictional-xargv 'echo $2 $1' foo bar bar foo $ fictional-xargv 'echo ...
OJFord's user avatar
  • 1,995
0 votes
2 answers
1k views

Play files as if they were raw audio samples

I once in the past used to play with files by playing them as if they were raw 8bit audio, but I forgot which program can be used to do this. How can I stream, say, /dev/random to my speakers with a ...
AnnoyinC's user avatar
  • 101
0 votes
1 answer
78 views

mergerfs no longer accepting "threads=2" option

I wrote my backup script to automatically combine two external drives into one with mergerfs so I could use the whole thing as a destination directory for rdiff-backup. However, when I tried to run it ...
SurpriseDog's user avatar
35 votes
1 answer
8k views

Create and populate FAT32 filesystem without mounting it

Is there a way to create a FAT32 filesystem containing a set of files, without needing to mount it or have root access? I am developing a software application for an old operating system as a hobby, ...
Malvineous's user avatar
  • 6,993
0 votes
1 answer
175 views

How to auto-detect filetype in pastebinit?

I use pastebinit to share snippets. As you can see, it has a -f switch so the rendered webpage highlights the uploaded file depending on the format of the file (like -f python or -f bash). Now, I want ...
Zeta.Investigator's user avatar
7 votes
1 answer
789 views

Why do some Linux utilities output Unicode (when it is not expected)?

While building a tool that reads command output I realized that some Linux utilities output Unicode characters when I didn't really expect them to do so. For instance, find uses ‘ (as opposed to the ...
kobus-v-schoor's user avatar
0 votes
0 answers
31 views

uname -m -p -i. What does every parameter stand for? [duplicate]

I have CentOS7 installed on my computer. uname -a prints the following: Linux c7 3.10.0-1127.el7.centos.plus.i686 #1 SMP Sun Apr 5 18:08:31 UTC 2020 i686 i686 i386 GNU/Linux As stated in man uname ...
Rebased's user avatar

1
2 3 4 5
7