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

learn more… | top users | synonyms (1)

0
votes
2answers
23 views

Tool for managing local development repositories [on hold]

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 ...
3
votes
0answers
12 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
26 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?
0
votes
0answers
16 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
39 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 ...
3
votes
1answer
182 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 ...
1
vote
1answer
42 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
95 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
1answer
56 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
25 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
1answer
58 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
0answers
91 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
62 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?
2
votes
2answers
118 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
830 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
53 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
301 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
22 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
486 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
79 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 ...
0
votes
0answers
37 views

Makeself --notemp clean up

I am using makeself to have a self extracting installer package, on the target system I have a /tmp directory that is set to noexec. Thus, I am trying to figure out a way to use makeself without ...
6
votes
2answers
10k 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
18 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. ...
1
vote
1answer
36 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
838 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 ...
9
votes
4answers
439 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 ...
3
votes
0answers
54 views

What are good document organization utilities? [closed]

I'm a graduate student and I have to deal with reading a lot of academic papers. I was wondering if there were any good utilities for linux for organizing documents (pdfs mostly) for reading. Having ...
4
votes
2answers
127 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
120 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
324 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.
0
votes
1answer
1k views

What does chmod stand for?

In order to memorize a command, it is usually a good idea to learn where it's name comes from. For example, cp comes from copy. usermod means "User Modifiy" (at least I guess so). Where does chmod ...
1
vote
1answer
218 views

On why touch, mv, etc., won't create subdirectories “as needed”

There are many Unix commands that will fail unless some subdirectory already exists, even though it would be a trivial matter for such commands to go ahead and create the missing subdirectory before ...
-5
votes
1answer
113 views

What does -p do when creating directories

What does the following command do to my system? $ mkdir -p /tmp/aes I typed the following command into my command line and it executes as expected. I know the folder is created as when I attempt ...
3
votes
2answers
286 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 ...
3
votes
2answers
142 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 ...
0
votes
3answers
84 views

How to find the difference in tokens in two strings using Unix tools?

I have two strings as below- token1, token2, token3, token4, token5, token6, token8, token9, token10 token2, token7, token4, token3, token5, token6, token8, token10, token9 Visually, I can see ...
1
vote
4answers
99 views

What are considered utilities and applications?

Commands like cp, ls, chmod, pwd etc are called as utilities. I seem to not able to define what kind of things are called applications. Let's abandon GUI to make the definition more precise.
7
votes
1answer
63 views

Swap (exchange) two big files in limited environment

Let's say I have two flash memory devices 1GB capacity each. Let's also say each device contains one big file ~ 1GB size. Assuming, I have limited (64MB) RAM and no hard disk drive, what is the ...
1
vote
0answers
134 views

List/query Open X11 Display Connections?

I am hitting this bug: NEWT errors when closing sketch on Linux · Issue #1651 · processing/processing · GitHub, when using Processing on Linux (Ubuntu 11.04); my messages are: X11Util.Display: ...
1
vote
3answers
94 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" ...
1
vote
1answer
32 views

Utility to tag regions of audio files

For example, say I have a recording with lots of noise and people speaking, I'd like to tag areas where people are speaking with a 1, and by default everywhere else is 0. Then save this file ...
0
votes
3answers
201 views

running an executable in parallel by dividing the input directory tree

Commands like find and grep would benefit greatly if they were to run in parallel. Is there a utility or a program that takes a command as an argument and makes it run in parallel by running multiple ...
0
votes
0answers
179 views

What's the problem with fsck.ext3?

It seems there is some problem with my HDD in my satellite box. The box records to and plays video from the HDD, but occasionally it hangs (it was stable before). It's Linux version ...
24
votes
2answers
1k views

Why use install rather cp and mkdir?

I've seen in many places used install -d to create directories and install -c to copy a file. Why not use mkdir and cp? Is there an advantage in using install?
31
votes
3answers
3k views

What is the point of the `yes` command? [duplicate]

This question concerns the yes command found in UNIX and Linux machines: Basically, what is the point (if any) and history of this tool? Are there practical applications for it? Can an example be ...
1
vote
4answers
3k views

Count tabs per line in text file with utils

I have a tab-tabulated file. I would like to check if every line has the same number of tabs. For first step, I'd like to print the number of tabs for each individual line. I've tried grep -o '\t' ...
2
votes
2answers
83 views

Is there a distribution-independent tool to autocompile+install dependencies?

I like the way e.g. ArchLinux' yaourt (or if you're not that lazy, abs+makepkg; and from what I read so far, Gentoo's ebuild as well) automatically take care of obtaining, compiling and installing ...
2
votes
2answers
106 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 ...
5
votes
1answer
728 views

`unbuffer` or `stdbuf` for removing stdout buffering?

Is there a difference between unbuffer(1) and stdbuf(1)? From what I gather, unbuffer makes more than the "best effort" of calling the libc function set(X)buf at the beginning, and then letting things ...
2
votes
1answer
50 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 ...