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
14
votes
2 answers

cp -p will preserve times for some files but not all?

I have a source directory on a machine with a bunch of files, all with the same permissions, that I want to copy to another directory, that is mounted via SMB. [tmark@dexter JR09141045 roche_454_transfer]$ ls -l /source_dir total 71348 -rwxrwxrwx 1…
tmark
  • 141
  • 1
  • 1
  • 6
14
votes
5 answers

Copy file permissions, but not files in Unix

(From : https://stackoverflow.com/questions/15245144/copy-file-permissions-but-not-files, closed because off-topic) I have two copies of the same directory tree. They almost have the same files in both (one version may have a couple extra or missing…
Mariano Paniga
  • 261
  • 2
  • 9
14
votes
3 answers

How to pass command output as several arguments to another command

I have a command that produce a output like this: $./command1 word1 word2 word3 I want to pass this three words as arguments to another command like this: $ command2 word1 word2 word3 How to pass command1 output as three different arguments $1 $2…
Addy
  • 161
  • 1
  • 1
  • 5
14
votes
4 answers

How to find all ways in which a Unix user account is locked

I occasionally find myself in a situation where an undermaintained system has an account that's been locked out. The problem is that there are a variety of ways in which an account can be locked out, each with their own method of being…
wfaulk
  • 6,878
  • 7
  • 46
  • 75
14
votes
3 answers

how to find files with incorrect permissions on unix?

I'm looking for a way to search a directory or directories and list all the files that have the wrong permissions for a public directory.
sal
  • 827
  • 3
  • 12
  • 18
14
votes
8 answers

Deleting a UNIX directory with a hyphen in the name

Through a boneheaded maneuver on my part, I accidentally created a directory called (for instance) -A, and ended up filling it with files. I want to delete said directory. I've tried: rmdir -- -A but it then tells me that the directory still has…
Kate Bertelsen
  • 243
  • 2
  • 6
14
votes
9 answers

Home-brew automatic tiered storage solutions with Linux? (Memory -> SSD -> HDD -> remote storage)

Related to this question about using an SSD for system and HDD for data, except I would like my system to do this automatically... Is it possible to have several layers of storage and push items automatically between them, using preferably free,…
David Gardner
  • 1,509
  • 2
  • 13
  • 25
14
votes
2 answers

What are the best practices of the usr, var, and etc folders?

Possible Duplicate: Meaning of directories on Unix and Unix like systems I'm confused about the different uses for 3 of the standard "root-level" folders: /var /etc /usr What are the different use cases for these directories?
Robert Ross
  • 461
  • 3
  • 6
  • 10
14
votes
4 answers

Why is "chroot" never used on Mac OS X?

I've been using Macs for 25 years, and "UNIX" since OS X 10.0.. but I've never really thought much about chroot, nor have I ever really needed or wanted to... It's a simple question, but... under what circumstances would one opt to use "chroot" on a…
mralexgray
  • 1,353
  • 3
  • 12
  • 29
14
votes
5 answers

List supported terminal types?

Is there a portable way to list supported terminal types on all NX systems? If not, what's the best way to get this list on Solaris?
pra
  • 622
  • 1
  • 5
  • 13
14
votes
4 answers

Log transport and aggregation at scale

How're you analysing log files from UNIX/Linux machines? We run several hundred servers which all generate their own log files, either directly or through syslog. I'm looking for a decent solution to aggregate these and pick out important events.…
markdrayton
  • 2,449
  • 1
  • 20
  • 24
14
votes
6 answers

Command line SIP dialer

Is there a simple command line SIP dialer for unix which can connect to SIP server, make a call and play some media file (wav/mp3)? In ideal I would look like this: sip-dailer +1xxxxxxxxxx /path/to/message.mp3
troex
  • 743
  • 2
  • 7
  • 9
14
votes
4 answers

After deleting a large file, how long does it take `df` to pick up the change?

I deleted a 2.3GB log file on my Ubuntu server, and df doesn't seem to be picking up the change. Is there typically a delay before df can detect that a large file has been deleted?
dan
  • 847
  • 2
  • 9
  • 11
14
votes
1 answer

How can I start a shell inside a jail on FreeBSD?

I have access to a a previously set up FreeBSD box with a number of jails on it. One of the jails is an SQL server, and does not have ssh enabled on it. How can I gain access to a shell on that jail from the host machine? (I have root rights on it.)
Redconnection
  • 297
  • 1
  • 3
  • 6
14
votes
4 answers

Does anyone know a simple way to monitor root process spawn

I want to exec a script when a new root process spawns. (on Linux) How can I simply do that ? Thanks
cerisier
  • 253
  • 2
  • 6