Newest Questions
244,120 questions
11
votes
7
answers
839
views
Where are displays other than ":0"?
X Power Tools -book has a sentence about ":0":
Display 0 on the local computer, connected by a local connection scheme
I tried to open a clock by "xclock -display :2", but I got an error:
Can't ...
140
votes
4
answers
43k
views
How do you detach the 2nd screen from within another screen?
I've accidentally attached to a 2nd GNU screen session from within an existing screen session and cannot detach or issue commands to the inner screen. I remember figuring out how to do that before but ...
9
votes
5
answers
766
views
Changing Unix group for files
I have a file that a colleague and I are editing together, on a Unix system. We are using Unix group permissions to edit it. We have one Unix group that we are both members of. Whenever I save the ...
19
votes
5
answers
68k
views
SCP from one server to another without password prompt
What is the best way of doing scp from one box to the other without prompting for password?
There are two servers:
Server A (10.152.2.10): /home/oracle/export/files.txt
Server B (10.152.2.11): /home/...
655
votes
24
answers
741k
views
Repeat a Unix command every x seconds forever
There's a built-in Unix command repeat whose first argument is the number of times to repeat a command, where the command (with any arguments) is specified by the remaining arguments to repeat.
For ...
72
votes
2
answers
140k
views
Find files with certain extensions
How can I use find to find all files that have a .xls or .csv extension? I have seen a -regex option but I don't know how to use it.
27
votes
10
answers
42k
views
How do I copy all files and directories, except certain ones over ssh?
Using the Linux command line, I use the scp command, to copy all the files and folders from a certain directory. However, I don't like to consume bandwidth, for copying things I rarely change like my ...
18
votes
2
answers
4k
views
Is it possible to simulate installation of Debian packages, and still marking them as installed?
Here's what I would like:
Start with a virtual system, with no installed packages. Then I invoke a tool, similar to apt-get to ask it to compute the dependencies and mark all the packages that ...
822
votes
40
answers
1.0m
views
Tracking down where disk space has gone on Linux?
When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time ...
21
votes
3
answers
5k
views
How should I configure grub for booting linux kernel from a USB hard drive?
I have a laptop hard drive in an external enclosure which I use as a large pendrive. For an added twist, I have installed Linux on it, so I can boot any machine with my distribution of choice (e.g. ...