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
1
vote
2 answers

Is there a wrapper to restrict an executable so that it can only listen on certain ports?

Is there a wrapper that will prevent an executable from listening on a port? Alternately, is there a wrapper that would remap the port, so that the executable thinks it's listening on 80, but is actually listening on 8080 My dream commandline would…
eventi
  • 231
  • 1
  • 4
1
vote
3 answers

Can and how do you run a command on a remote server via a bash script?

I feel a little silly asking what would seem to be a Google-able question but I'm trying to script out a repetitive task of (1) ssh'ing into a remote server (2) running script.sh in my home directory, and (3) copy/pasting the output. It would be…
editor
  • 383
  • 2
  • 5
  • 21
1
vote
4 answers

Locate a particular string in a directory

I want to do the following: cat *.xml | grep some_string_here This tells me if a particular string exists in an xml file in a directory. Unfortunately it does not tell me which file. how can I do this better? cat command does not see me to have an…
1
vote
4 answers

Script to gather all the files ending in .log and create a tar.gz file

I'm currently using this script line to find all the log files from a given directory structure and copy them to another directy where I can easily compress them. find . -name "*.log" -exec cp \{\} /tmp/allLogs/ \; The problem I have, is, the…
OscarRyz
  • 384
  • 1
  • 7
  • 15
1
vote
1 answer

Nested hosts with scp?

I need a way of copying a file through nested servers, as in localhost$ ssh user@host1 host1$ ssh host2 where host2 is on an off-site intranet and not directly accessible. Is there a way of using scp to copy a file to localhost from host2 through…
jvatic
  • 111
  • 5
1
vote
1 answer

netstat on fresh install of Solaris 10 update 9

I am attempting to decipher the below output bash-3.00$ netstat -a UDP: IPv4 Local Address Remote Address State -------------------- -------------------- ---------- *.sunrpc Idle *.* …
700 Software
  • 2,233
  • 10
  • 49
  • 77
1
vote
3 answers

Solaris NFS: user permissions

I am very new to NFS. I would like to make sure I am clear. If the NFS server shares a directory rw,, and all the files in the directory are permissions 700 and user/group for those files is root/root,,, On the client you would have to log in as…
700 Software
  • 2,233
  • 10
  • 49
  • 77
1
vote
1 answer

Linux / UNIX / OS X Binary Directory Structure

Will Linux / UNIX / OS X binaries be stored in the same directories across different platform or distributions? I'm asking because I need to have access to uuidgen (stored in /usr/bin/uuidgen on my development computer) and noticed that my local…
1
vote
1 answer

TCP failure on Solaris

I recently ran into a problem where a Solaris server could not establish a TCP socket on port 2126. From a packet capture I see this (note: A is a Solaris server, B is a router): A sends SYN to B B sends SYN, ACK to A Notice A (Solaris) does not…
anurag kohli
  • 57
  • 1
  • 2
  • 7
1
vote
2 answers

cd in bash script

I work in a windows environment but prefer to use bash in cygwin as my shell. To cd to a lengthy path I am given in windows form I type: cd $(cygpath -u 'Z:\Some\long\windows\path') ..pasting the windows path in from the clipboard. Since I'm lazy…
1
vote
3 answers

In Linux, how do I send packets of a certain size to an IP?

What commands can you run? (must be via the terminal)
Alex
  • 8,471
  • 26
  • 75
  • 99
1
vote
3 answers

Unix one liner: Combine 2 headed files

If I have 2 files where the first lines contain identical headings: A.txt: A 1 aa B.txt A ee 7 I want to combine them like so: C.txt A 1 aa ee 7 Is there a one liner to do this?
1
vote
6 answers

Teaching total beginners who prior worked with Windows only bash?

I'm supposed to give an introduction to using the shell (i.e. bash) to total beginners. Which is the most basic/useful stuff I can teach someone within 1 1/2 hours without demanding too much? Here are some point I thought up: Where Am I…
Trollhorn
  • 203
  • 3
  • 10
1
vote
1 answer

Which bugzilla version to install

Which Bugzilla version to download and install http://www.bugzilla.org/download/ on RHEL5
Rajeev
  • 251
  • 1
  • 4
  • 10
1
vote
1 answer

Dynamic UNIX users with IMAP

I would like a way (PAM module?) to authenticate local Unix users by adding @domain.tld to the username and trying that with the password against an IMAP server. This way we could allow authentication to our Unix boxes for people who have email…
singpolyma
  • 489
  • 2
  • 7
  • 19