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

learn more… | top users | synonyms (1)

2
votes
4answers
249 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 ...
3
votes
2answers
195 views

ln gives different results when run multiple times

I have this simple script to use with seventh sense (it's a lone wolf gamebook reader/player): #!/bin/bash GAME_PATH=$(dirname "$(readlink -f "$0")") SEVENTH_SENSE_PATH=$(echo ...
4
votes
3answers
940 views

Why doesn't uname -a return a useful identifier

I typed the command uname -a into my college's server and got this: 2.6.18-274.3.1.el5 #1 SMP Tue Sep 6 20:14:03 EDT 2011 i686 i686 i386 GNU/Linux Are they trying to hide the version of Linux that ...
6
votes
1answer
322 views

Interactive tree command

Is there any version of tree command that displays file structure as a tree structure, but in a way that I can interactively walk trough? Why do I need it exactly - I am trying to simulate TextMate ...
3
votes
2answers
2k views

file block size - difference between stat and ls

I've noticed that when I do a: ls -ls file It provides block count, say 8 blocks. When I do: stat file I notice that the block count is 16, twice the number given by ls. The block size on my ...
2
votes
1answer
630 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 ...
4
votes
2answers
2k views

Set alignment of numeric columns when columnating data

I use column -t to format data for easy viewing in the shell, but there seems to be no option to specify column alignment (e.g. align to the right). Any Bash one-liners to do it? I have arbitrary ...
3
votes
2answers
91 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 ...
7
votes
4answers
4k views

creating a sequence of numbers, one per line in a file

Is there a way to create out of thin air, a file that is a sequence of numbers, starting at a given number, one per line? something like magic_command start 100 lines 5 > b.txt and then, b.txt ...
8
votes
2answers
13k views

How can I test the encoding of a text file… Is it valid, and what is it?

I have several .htm files which open in Gedit without any warning/error, but when I open these same file in Jedit, it warns me of invalid UTF-8 encoding... The html meta tag states ...
3
votes
1answer
945 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 ...
2
votes
1answer
990 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 ...
2
votes
1answer
78 views

How to use the -t option of Unix command look

I'm learning the look utility and I don't understand the meaning of the -t option. Can someone show me some examples of it? I read the man page, but still don't know what it exactly means.
3
votes
2answers
102 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 ...
5
votes
1answer
138 views

How would one detect if external command exists in a script?

Is there a way to detect if an external command exists (i.e. wget, svn)? More specifically today, i was trying to run one of my scripts i wrote and the person didn't have wget or svn installed. The ...
0
votes
0answers
29 views

Problem with calling program from the command line [closed]

Note: this is a cross post with this post on SO. I am trying to build a command line wrapper in Python 3 for an exiting command line tool called 'spooky' and I am having a hard time understanding ...
0
votes
1answer
214 views

Listing only the files in a folder and inside its subfolders

Is there a linux command for getting only the files in a folder and inside its subfolders? I have used the find command, but it is displaying all the files and folders. I am executing this shell ...
32
votes
4answers
3k views

What is the difference between a builtin command and one that is not?

Is there any intrinsic difference between a builtin command and another command which can nominally do the same thing? eg. Do builtins get "special" treatement? ... is there less overhead running ...
1
vote
3answers
598 views

How to determine which executable on my path will be run?

I run which and get the following, brendan$ which python /opt/local/bin/python brendan$ which -a python /opt/local/bin/python /usr/bin/python brendan$ ls -l /opt/local/bin/python lrwxr-xr-x ...
1
vote
0answers
340 views

Validating an OpenSSL Cipher List

Are there any tools that can validate an OpenSSL cipher list both syntactically and semantically? For example, ALL:!LOW:!SSLv2:!EXP:!aNULL is both syntactically and semantically valid cipher list. On ...
1
vote
1answer
469 views

Good “progress bar” about md5sum checking progress?

I'm using this right now: time md5sum -c *.txt | pv | grep -v ': OK$' but aren't there any smart solutions that can list that how many files haven't been checked? I mean I have many md5sum's in ...
4
votes
3answers
434 views

General specification for command line interface

I was wondering where I can find and learn some general idea about the command line interface used in Linux and bash? As to now, I have found pieces of such information only from experience, such as ...
1
vote
3answers
337 views

Sort data on multiple columns

INPUT (unsorted, bad) "XYZ-ZTE-43255 serverB618 agreed","XYZ-ZTE-44432" ,"XYZ-ZTE-43255" "XYZ-ZTE-52775 serverB110 agreed", "XYZ-ZTE-79213 - serverB688 agreed", "XYZ-ZTE-77323 serverB617 agreed", ...
3
votes
2answers
178 views

Why do I get a 'conformability error' when I attempt to convert water in GNU units?

I've been using the GNU units program and I seem to think that I should be able to convert water between a volume and a weight. Examples: You have: 1 gram water You want: cm^3 conformability error ...
5
votes
2answers
1k views

Combine input from multiple files/pipes without clobbering lines or blocking?

Is there a tool that will take input from multiple files or pipes and write it to stdout, without blocking on reads, such that individual input lines come out intact? I basically want to multiplex a ...
1
vote
1answer
2k views

e2fsck progress bar?

How can I see the progress of e2fsck in the terminal? Are there any pv like ways? For example how can I see how far along this command is in progress: e2fsck -f -y -v /dev/sdb1
4
votes
2answers
826 views

Why is bash completion of a symlink different than a directory?

I usually do a find with an environment variable as the path when searching for source code. Recently I replaced my environment variable with a symbolic link, and it broke Bash's shell completion. ...
14
votes
3answers
2k views

Why use superflous dash (-) to pass option flags to tar?

To create a tar file for a directory, the tar command with compress, verbose and file options can be typed thus: $ tar -cvf my.tar my_directory/ But it also works to do it this way: $ tar cvf ...
2
votes
1answer
46 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] ...
2
votes
1answer
465 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?
1
vote
1answer
71 views

Good base converter or help using gbase?

Dear all, Could you suggest a good base converter that also does "signed" conversions? Either gbase does not do it, or I can't see how it's done. Any help would be great. What I want to do is give the ...
14
votes
8answers
2k views

What are the best general purpose programming tools to complement Vim?

I've been using Vim as my text editor for a little while now and I feel like I'm taking the long way to do anything. I use ctags to tag my code base for navigation and I use grep (although ...
0
votes
1answer
87 views

Sources to learn about performing certain tasks on command line?

Can someone transform it into community wiki please? I guess I've got no privileges for that. Let's list practical sources for learning about performing certain tasks on *nix command line. E.g. I ...
4
votes
2answers
2k views

wgetpaste alternatives?

Are there any wgetpaste alternatives?
6
votes
1answer
539 views

Difference between references of Linux “utilities”, “commands” and “programs”

I read uses of the word "utilities" for commands/programs such as 'ls', 'chmod', 'mv', etc. Is "commands" is Linux referring to the same things as top, ps, etc., or are those something different? ...
5
votes
1answer
491 views

How to use the ul command line utility

I wanted to answer http://unix.stackexchange.com/questions/3043/use-roff-to-underline-words with "just use ul, this command is meant specifically for underlining text", however I just can't grasp how ...