Questions tagged [unix]

Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

Excerpt from the Wikipedia page

Unix was originally written in assembly but has since been rewritten in C. It has been branched many times both commercially and open source. One popular variant is the BSD variant which originated from the University of California, Berkeley. It also gave rise to Linux.

Notable variants

  • Silicon Graphics - Irix
  • IBM - AIX
  • Sun Microsystems - Solaris
  • Hewlett Packard - HP-UX

Unix is officially trademarked as UNIX.

Unix on Wikipedia

1949 questions
12
votes
1 answer

Getting rsync to delete files from the *sender* after transfer

I'm using rsync to move one directory to another. Is there some way to get rsync to incrementally delete a file from the sender after it has copied it to the reciever?
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
12
votes
1 answer

Can a very large /etc/hosts.deny slow down SSH connections?

I've been using denyhosts for a while and I noticed my /etc/hosts.deny is getting rather large. Denyhosts adds IPs to /etc/hosts.deny, and my denyhosts is configured to never purge IPs. $ wc -l /etc/hosts.deny 22149 /etc/hosts.deny Might this…
Adam Monsen
  • 725
  • 1
  • 7
  • 24
12
votes
4 answers

ssh still accepts password authentication despite being configured for public-key only authentication (which works!)

I have configured an Ubuntu 10.04LTS desktop install to only allow public key authentication. RESULT: public key authentication works perfectly! QUESTION: The problem is that despite being configured to only accept public key authentication the…
rfreytag
  • 1,195
  • 1
  • 10
  • 11
12
votes
4 answers

Is is possible to filter the output of tail?

I'd like to tail a file but only output lines that have a certain string in them. Is this possible?
Abe Miessler
  • 925
  • 4
  • 11
  • 20
12
votes
14 answers

Why pay for UNIX?

I'm fairly new to Unicies. With the advent of GNU/Linux and BSDs, what are the reasons for companies to prefer AIX, Solaris and other commercial systems?
Tim McNamara
  • 273
  • 1
  • 7
12
votes
3 answers

How to move directory from one server to other?

I have SSH access to the both servers, one of them is empty. How can I move site directory from old server to new server via SSH connection? PS: On both servers is unix
ajile
  • 243
  • 2
  • 3
  • 7
11
votes
4 answers

Execute command when a file changes

I have a scenario where I am uploading .csv files to a specific folder, /tmp/data_upload, every day, and the old files are replaced by the new one. I need to run a Python script once the data is uploaded. For this, I have an idea to create a cron…
Alex
  • 172
  • 1
  • 1
  • 8
11
votes
12 answers

What's the first thing you check when an untouched unix server starts going berserk?

So you have this neatly setup unix server and it's super fast and works swell and everything is great for months, and suddenly all kinds of weird errors start showing up for a variety of different services and none of them make a lot of sense on…
kch
  • 4,592
  • 3
  • 20
  • 17
11
votes
3 answers

PYTHONPATH environment variable...how do I make every subdirectory afterwards?

I currently do this: PYTHONPATH=/home/$USER:/home/$USER/respository:/home/$USER/repository/python-stuff How can I make it so that the PYTHONPATH can include everything subdirectory? PYTHONPATH = /home/$USER/....and-all-subdirectories
Alex
  • 8,471
  • 26
  • 75
  • 99
11
votes
1 answer

su: /bin/bash: Resource temporarily unavailable

Unable to switch user to postgres. Ulimit settings for postgres user is set with reasonable limits. We are not hitting max. No errors in /var/log/messages. Error: BETA -bash-4.2# sudo su - postgres su: /bin/bash: Resource temporarily…
Chucks
  • 521
  • 1
  • 7
  • 13
11
votes
3 answers

Unix magic, delete all .pyc files from a tree of directories?

Is there a quick way of deleting all the .pyc files from a tree of directories?
interstar
  • 1,281
  • 4
  • 18
  • 23
11
votes
4 answers

Available disk space on Unix/Linux OS

How to get available disk space on Unix/Linux OS, including unallocated space (which wasn't assigned to any partitions)?
krapstuke
  • 155
  • 1
  • 2
  • 7
11
votes
5 answers

Confused by CPU values in Unix 'top' command

In the screenshot below, the overall CPU is being reported as 3% but the mysqld process is reported as using 57%. Is this 57% of the overall 3% and thus mysqld is only using about 1.5% of the CPU? top screenshot…
Teflon Ted
  • 510
  • 2
  • 7
  • 18
11
votes
4 answers

Automatically-reconnecting TCP tunnel

I have an unreliable network connection between two machines: sometimes active TCP connections get dropped for reasons beyond my control. I want to establish a reliable TCP connection between the two machines. If the network was reliable, I'd just…
11
votes
3 answers

How do I delete all empty directories

(on a Linux system) I have a large set of nested subdirectories on a filesystem. I would like to prune all directory paths that contain no files at all. In other words I would like to delete every directory where there are no files in that directory…
AndrewR
  • 442
  • 3
  • 10