The unix-utils tag has no wiki summary.
11
votes
2answers
289 views
Why does redirecting the output of a file to itself produce a blank file?
Why does redirecting the output of a file to itself produce a blank file?
Stated in Bash, why do
less foo.txt > foo.txt
and
fold foo.txt > foo.txt
produce an empty foo.txt? Since an ...
0
votes
1answer
54 views
How to extract a specific file without its folder structure using the 7za command
I have a zip file (my.zip) consisting of 4 files:
mydata_20050523-20130113.csv
mydata_20050523-20130113FileHeader.csv
my Data Association - Code Values.pdf
my Data Association - Readme.pdf
out of ...
3
votes
2answers
168 views
Opposite of tail: all lines except the last n lines
How can I discard the last n lines of a file with a unix command line filter?
That would be sort of the opposite of tail: tail discards the first n lines but pipes the rest through, but I want the ...
1
vote
0answers
38 views
pronunciation of 'ctl' in commands like 'systemctl' [closed]
There are sorts of commands like 'systemctl', 'hostnamectl', or 'jounralctl'. I realize that 'ctl' is shorthand for control, but I'm wondering what the generally accepted pronunciation of 'ctl' is.
2
votes
1answer
125 views
why do *NIX commands have such “insane” (counterintuitive) defaults (philosophical pondering)? [closed]
Why do most *NIX commands my (experience is Linux mostly and rare encounter with FreeBDS) have such "insane" (unintuitive) default, behaviours, i.e. VERY different from what the "equivalent" GUI ...
2
votes
1answer
35 views
how to compare contents of video files?
I have many videos with different encoding. I know some of them have the same content. So here's my need: is there a linux tool (command line oriented, with or without graphical front-end, ...
1
vote
0answers
134 views
rTorrent web frontends [closed]
What are the differences between rtgui and rtpg-www as web front ends for rTorrent.
I am looking to run rTorrent on a media server connected to my TV and want a gui so that my roommates that are not ...
2
votes
4answers
738 views
awk / sed to print only up to the underscore character
How can I use awk or sed to print a string only up to the first underscore character?
Before:
host100_044 2
host101_045 2
host102_046 2
After:
host100
host101
host102
2
votes
1answer
73 views
Why is `bc` ignoring my `obase`?
>>> bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
ibase = 16
obase = 56
...
1
vote
1answer
103 views
Identifying a file with “file” in a shell script?
I'm currently writing a shell script that needs to be able to identify the actual type of files (not their extensions) with the unix "file" utility. However, that tool outputs human readable text ...
0
votes
1answer
273 views
Curious about lsusb output
I ran lsusb on my Linux (Ubuntu) machine and here is my result:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 ...
1
vote
1answer
268 views
why doesn't unix's du(1) command support -i for inode measurement?
Is it simply because going from filenames to inode numbers is difficult in userspace, and you can't read inodes from there?
1
vote
2answers
64 views
Is there an equivalent of the unix 'look' command on Windows?
I'm looking for an equivalent of the unix look command, which searches a text file for lines beginning with a given prefix. In particular, it has an option for a binary search within a pre-sorted text ...
5
votes
2answers
687 views
How do I install 'rev' in Cygwin?
The Unix rev utility reverses lines in a file. How do I get this under Cygwin? Which package do I need to install?
0
votes
3answers
3k views
How to kill all the processes that have dates older than today?
I issue the command ps -aux | grep tony. It displays the following output
tony 10986 0.0 0.0 33532 464 ? S Feb01 0:00 vncconfig -iconic
tony 10988 0.0 0.0 86012 512 ? ...
4
votes
3answers
305 views
How can I change the order of GNU Screen “screens”?
I am currently using the GNU Screen tool. Now my question is whether there is a way to organize or rather change the order of the screens/ screen list displayed at the bottom of my console window. I ...
9
votes
4answers
781 views
Flashing window in gnu screen
I really like gnu screen but there is a problem in my environment when I use it.
Examle:
username@domain:/var/www$ l
Display all 130 possibilities? (y or n)
when you click [Tab] to perform ...