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

learn more… | top users | synonyms (1)

2
votes
2answers
46 views

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

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 ...
14
votes
3answers
1k 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
39 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 ...
1
vote
0answers
56 views

Most common high level language? [closed]

Suppose I want to write a *nix utility. Furthermore, I don't want to write it in C or C++, because those are out of my skill set, and I don't want to write it as a shell script, because I want some ...
0
votes
0answers
21 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 ...
16
votes
4answers
714 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 ...
0
votes
1answer
34 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 ...
1
vote
1answer
38 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 ...
0
votes
0answers
11 views

Labeling error messages

When dealing with errors, utilities often print their name followed by the error message, for example, sed, cat, awk, etc. sed: foo: No such file or directory Others print the word fatal, followed ...
1
vote
1answer
9 views

gnupg: set subkey expiration date in the past

I would like to set the expiration date of a GPG subkey in the past, but gpg --edit-key does not allow me to. Is there any workaround to that? Rationale: it is useful to set the expiration date of a ...
0
votes
1answer
103 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
944 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 ...
1
vote
1answer
46 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
116 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
49 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 ...
1
vote
3answers
231 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
0answers
33 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
67 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
311 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 ...
0
votes
2answers
312 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
237 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 ...
0
votes
0answers
98 views

How to check if Nginx + Ruby on Rails web application is down?

I am very new to *nix system. I have below setup: OS - Ubuntu 14.14 Web Server - Nginx with Passenger Web Application Ruby on Rails web application Please tell me what tools to use to achieve: ...
0
votes
2answers
48 views

Tool for managing local development repositories [closed]

I'm a web developer and I work with various languages and projects (who doesn't?). I've cloned many of these projects/repositories locally to various directories. Now, with dozens of projects cloned ...
5
votes
0answers
151 views

What are the differences between xdotool and xautomation?

xdotool and xautomation are two command line X11 automation tools. I've used the former for a while and only recently found out about the existence of the latter, and I'm curious to know what someone ...
-1
votes
2answers
49 views

if I delete usr/bin/chattr would other components of the system be affected?

I would like to delete chattr, as in /usr/bin/chattr, I am using Linux Mint, do you think other parts of the system would be affected?
1
vote
0answers
70 views

Difference between fsarchiver and dump

What is the difference between dump and fsarchiver? Are there features in dump which are not covered by fsarchiver? Can both backup to tape storage for example?
1
vote
0answers
398 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 ...
4
votes
1answer
326 views

What tool to use to view an object file?

I'm reading an old book on linkers and loaders and it has images of object code. But I can't figure out what tools is used to display the contents of these files. I'd appreciate if someone could point ...
2
votes
1answer
346 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 ...
3
votes
2answers
100 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 ...
5
votes
1answer
79 views

Why do some utilities parse operands before options?

According to several sources, the UNIX utility guidelines specify that operands should always be processed after options: utility_name[OPTIONS][operands...] Some older UNIX utilities are known to ...
1
vote
1answer
122 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 ...
1
vote
3answers
104 views

It is a good idea to download the default Linux utilities?

I am working on a server environment which has almost no executables in its /bin folder, except for some basic ones like ls and ln, but I want other common binaries (like sed, awk, gcc etc.) to be ...
1
vote
1answer
346 views

how to use ser2net control port

man ser2net says that by running ser2net with a -p flag I can execute a number of commands. If I run ser2net -p 12345 and, then, lsof -i :12345, I can see the service on that port. How would I, for ...
1
vote
1answer
92 views

Can I check how much energy a USB device is consuming?

Is there any utility I could use to check how much energy a USB device is consuming, for a given time frame?
3
votes
2answers
830 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 ...
1
vote
1answer
3k views

Ubuntu runuser command?

I am creating a bash script that requires to run commands as a specific user. As a result I am using the command: runuser I have tested this script and it works perfectly in Ubuntu Server 14.10. ...
2
votes
1answer
563 views

Problem with install command to copy a whole directory

So I have a repo with some of my config files and I'm trying to create a makefile to install them in the homedir. The problem I have is that when I run the following command straight in bash install ...
4
votes
4answers
346 views

How do I show the numeric character sequence of a string?

Is there a command either standalone or in vi or similar (can be gui) that will show me the numeric sequence of a string? Input: The cat hopped in a box. Output: T h e c a t h o p p e d ...
0
votes
0answers
24 views

Change encoding of a text file in-place: iconv alternative? [duplicate]

Apparently, iconv is unable to use the same file as input and output file. Other tools, e.g. sed, have an -i switch that allows "updating" a file in-place. (Under the hood, temporary files are ...
8
votes
2answers
648 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". ...
2
votes
1answer
88 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 ...
26
votes
2answers
82k views

How to “List Disk” in Linux

In Windows, all you have to type is "List Disk" using DisPart in a command prompt and it'll list all physical storage devices available, their size, format, etc. How do I do this in Linux?
0
votes
1answer
25 views

2.6.35 armel header files?

Debian does not seem to include a package linux headers 2.6.35-9 for the armel chipset - compiling drivers work, but insmod, and insmod -f is failing with a version mismatch and invalid moduel format. ...
2
votes
2answers
49 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 ...
4
votes
2answers
1k views

Convert file with integers written in ascii to binary file of integers

I have a file that contains a long list of integers written in ascii separated with newlines, like such: -175 2 -19345 345592 -45 2355 etc... I want to convert this file into a "binary" file ...
10
votes
4answers
744 views

Store output of a command into a ring-buffer

I've got a long-running command that generates a lot of output on stdout. I'd like to be able to retain, for instance, only the last three days or the last gibibyte (avoiding cutting lines in the ...
4
votes
2answers
211 views

Factor is too large

I'm trying to use a factor utility but it tells me that number is too large. Is there any utility that can do what factor doing but not tells that number is too large?
0
votes
0answers
210 views

Tools to inspect local network, and find local IP address of device?

This is my specific context (Latex/TikZ code for the diagram below): Now this local "Router", has broke down several times, and several different devices have had its role (sometimes they have a ...
2
votes
1answer
679 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.