utilities

File backed, key value store implemented with posix utilities

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 thought was to use json and jq, but I’m interested in …

Total answers: 1

Confused about java -version

Confused about java -version 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 specify a single option named version instead of -version, which would mean 7 options v,e,r,s,i,o,n. Why …

Total answers: 1

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

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 filename as 1st parameter ? Asked By: Mark Kang || Source By convention, …

Total answers: 1

How to visualise eml files?

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 to find something like a pdf viewer that opens when you click on …

Total answers: 3

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

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? Asked By: ordinary_guy || Source Using file and ldd: $ file /bin/sh /bin/sh: ELF 64-bit LSB pie executable, x86-64, …

Total answers: 1

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

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 /home/me/image.png. My preferred program for viewing images …

Total answers: 2

Create and populate FAT32 filesystem without mounting it

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, and as part of the build process I would like …

Total answers: 1

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

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 ASCII ‘) as a quote character in its …

Total answers: 1

Command line tool to install GNOME Shell extensions

Command line tool to install GNOME Shell extensions Is it possible to install an extension from https://extensions.gnome.org/ without using GNOME Shell integration browser add-on? I’m looking for a tool that will be able to search and install extensions from the above web-site, for example: $ gnome-extensions search <keyword> $ gnome-extensions install <extension-id> Asked By: anlar …

Total answers: 6

Are basic POSIX utilities parallelized?

Are basic POSIX utilities parallelized? In a common Linux distribution, do utilities like rm, mv, ls, grep, wc, etc. run in parallel on their arguments? In other words, if I grep a huge file on a 32-threaded CPU, will it go faster than on dual-core CPU? Asked By: homocomputeris || Source You can get a …

Total answers: 4

Is there a linux local tool to view, search, add contacts to/from a .vcf file?

Is there a linux local tool to view, search, add contacts to/from a .vcf file? I’ve downloaded my contact list in a .vcf format to my linux machine. I would like to be able to consult it without having to connect to the internet. The search feature is most important. I’ve got a script with …

Total answers: 2

Select area on screen with pointer

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,height or rect structure as in left,top,right,bottom Asked By: ibuprofen || Source The slop application …

Total answers: 3

Main difference between tr (translate) to sed and awk

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 delete content in a file. What is the main difference between these two …

Total answers: 3

head eats extra characters

head eats extra characters The following shell command was expected to print only odd lines of the input stream: echo -e “aaanbbbncccndddn” | (while true; do head -n 1; head -n 1 >/dev/null; done) But instead it just prints the first line: aaa. The same doesn’t happen when it is used with -c (–bytes) option: …

Total answers: 3

tr analog for unicode characters?

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 general case solution is needed. Without gorillion piped sed calls if possible. Note that tr does not work on …

Total answers: 3

Taskwarrior: Recurring tasks that are due relative to the day of recurence

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. Asked By: lukmi || Source Recurrence is possible, as …

Total answers: 1

How to override warning in Taskwarrior?

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 specified by $TASKRC and $TASKDATA environment variables of Taskwarrior. How could I make task to be quiete and not warn me …

Total answers: 1

Why are POSIX mandatory utilities not built into the shell?

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? For example, I have a script that basically reads a few small text files …

Total answers: 8

Get line number from byte offset

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 plain text, “binary” blobs, multibyte characters etc. But the section …

Total answers: 4