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

learn more… | top users | synonyms

1
vote
3answers
1k views

How can I locate Unix executable files in OS X?

I accidentally deleted a bunch of Unix Executable Files on my Mac when I was using some cleanup tool and now there's no way I could restore those files using that app. But I have them all in my ...
1
vote
0answers
39 views

LESSOPEN equivalent for lv

Is there any LESSOPEN equivalent, which is an environment variable used by less, for lv?
1
vote
1answer
941 views

Unix tool to output first n characters in an UTF-8 encoded file

I want to print the first 1000 characters in an UTF-8 encoded file. I know that the head tool can print the first n bytes of a file, but it may cut a character in the middle so that I get garbled ...
1
vote
1answer
693 views

fcgiwrap listening to a unix socket file: how to change file permissions

I have a web server (nginx) and a CGI application (gitweb) that is ran with fcgiwrap to enable Fast CGI access to it. I want the Fast CGI protocol to take place over a unix socket file. To start the ...
1
vote
1answer
690 views

How to solve NXDOMAIN error on my mac?

I have a blog and I recently moved to another hosting company. I have two laptops, a sony vaio and a macbook pro. I have noticed that I can access my blog only from the sony vaio. Using terminal on ...
1
vote
2answers
91 views

locate similarly named files

I'm running OS X 10.7.3. I would like to locate all the files that have common strings in their filenames. I have a folder that contains several files whose filenames are the same except for the ...
1
vote
1answer
136 views

Unix (Debian) autocomplete paths thru symlinks

By default, directory symlinks on unix systems are treated as files as far as the autocomplete feature goes. For example, having a directory symlink at /srv/link/, typing /srv/liTAB does only complete ...
1
vote
0answers
172 views

tcpdump loses connection

I'm on Ubuntu – but it's the same on Debian. I'm using tcpdump in order to track the connection of computers on my private network. At some point, the internet connection of the computers launching ...
1
vote
1answer
830 views

using ulimit for current shell

I want to increase the hard limit of maxfiles using ulimit -Hn for the current bash shell. The problem is I can not do it without using sudo. But, when I do sudo ulimit -Hn unlimited, it does not ...
1
vote
2answers
122 views

How to protect privacy(from the w command) on shared linux machines?

In my workplace, we have shared Linux machines to which all employees log on to do their work. However, a simple 'w' command gives me a list of who's logged in and what they're doing. The same applies ...
1
vote
1answer
474 views

Executing local script/command on remote server

I have a command that I want to run on machine B from machine A. If I run the command on machine B locally, it works fine. Here is the command: for n in `find /data1/ -name 'ini*.ext'` ; do echo ...
1
vote
1answer
557 views

rsync from one source to multiple different target directories according to pattern?

Assume e.g. you want to backup all files matching pattern a to directory A and all files matching pattern b to directory B. The natural way to do this are two separate rsync commands. rsync ...
1
vote
1answer
1k views

shell scripting grepping for pattern and then echo message

I have a file which has the below pattern ================================================= 4601 -- it means completed 4602 -- it means failed 4603 -- it means timed out ...
1
vote
1answer
194 views

Why does my terminal have funny characters for the date field? Looks like Russian?

Strangely my terminal has funny characters in the date area that look like Russian. Does anyone know why it displays these characters? (I'm running Mac OS X Lion)
1
vote
0answers
1k views

Create a “postgres” user account on OSX?

I just made a mistake: I installed PostgreSQL on Mac OSX 10.6.7 and when I wanted to connect to it I did su postgres, then it asked me for a password and I did sudo passwd postgres to change the ...
1
vote
1answer
288 views

Unix chroot questions

I have a few questions about chroot: What are the minimum requirements for chroot? Can you chroot into another Unix OS that has /bin/bash in it? Is it possible for the chroot to run in other ...
1
vote
0answers
402 views

Getting complement of two text files on the Unix command line

Is there a fast Unix-based utility (ideally written in C) for getting efficient, streaming intersection/union of tab-delimited text files? For example, allow queries such as "give me the all the ...
1
vote
1answer
325 views

Alter bash tab completion to make it more like zsh

I'm on a Mac and the cp and mv commands are killing me due to them copying the contents of a directory if a trailing slash is present. It has bitten me more than once when I use tab completion to ...
1
vote
1answer
851 views

How to avoid duplicates when copying files that have been renamed at the destination

I have to get pictures from a folder – with subfolders which are updated automatically – with their extensions. These files have to be copied in a folder where a website based on PHP will edit them ...
1
vote
1answer
3k views

how do I compress all files within a folder on Unix?

I've been unable to compress the contents of a folder on Unix, note that I don't want to compress the directory itself but the contents inside. so far.. to compresss the files I use: compress ...
1
vote
1answer
125 views

How to know the version of RPM during installation

I have created a script for deployment using YUM and RPM. During the pre script, is it possible to know whats the version of the rpm I am deploying. I want to create a backup file with the version ...
1
vote
0answers
335 views

Converting csh or tsh scripts to Bash

I am looking for a tool that can convert scripts written in csh or tcsh to a bash scripts. At least on the basic stuff so that I don't have to go through the process of translating everything from ...
1
vote
1answer
30 views

Saving compilation options

Suppose a library have been configured and compiled into /opt/name/ by root. Is there a way for me to see the options passed to ./configure when the program was first compiled and installed (short of ...
1
vote
2answers
77 views

Is there a savepoint like feature in Unix based Operating System?

I'm interested in knowing if things like File system structure creation/modification Execution of commands like adduser Changes made between specific duration start/end datetime can be reversed, ...
1
vote
0answers
9k views

How to set permission to ftp-user so that has FTP access to /home/another-user/www/public_html folder?

I'm a novice with Linux/Unix. Basically I'm attempting to setup a Web server, and FTP server on a Linux box via SSH. My plan is to have Apache's root folder inside the main user account like ...
1
vote
2answers
596 views

Is there a open source monitoring package that monitors logs for specific string patterns?

In our current system, we are not effectively monitoring the logs for errors as most of the errors are not serious enough. I want to basically warn users on the important errors. I cannot touch the ...
1
vote
3answers
281 views

Unix hostid and Windows

Is there a Windows equivalent to the unix hostid? http://linux.about.com/library/cmd/blcmdl1_hostid.htm
1
vote
0answers
149 views

Soft link to a Excel sheet created in Unix is displayed as a Folder in Window

Created a Softlink for a Excel sheet using the following command, in Unix shared file system. temp$ ln -s temp1/Main.xlsm Link.xlsm But when I view the temp directory in Windows, Link.xlsm appears ...
1
vote
2answers
156 views

Best way to iterate through a bunch of files and search/replace text?

I'm having some trouble doing something that should be fairly simple. Here is how I imagine it would work: find . -name *.txt -exec sed 's/oldtext/newtext/g' {} > tmp \\; mv tmp {} \; ...
1
vote
2answers
326 views

UNIX process controls

Beginning to get a feel for unix and have some difficulties finding commands for process controls. As an user that is NOT root, I am trying to find out... (1) the process id of current shell, (2) ...
1
vote
1answer
497 views

running a script on remote machine from local machine

i want to run a sript that is present in local machine,but it should perform operations on remote machine. i have already generated public-private keys,so no password authentiaction is required.
1
vote
4answers
2k views

Tool to monitor file read/write in unix

Is there any tool/command available in unix to monitor read/writes in a particular file. I also want to collect how much data is being read each time the file is accessed.
1
vote
2answers
131 views

terminate the background task launched by xterminal

I used Xterm -e command to run six programs in the background in six X terminals in my shell script. When I used PS command, I can see 6 Xterm process running in the background but I can't see the ...
1
vote
1answer
176 views

bash starts replacing the characters on the current line insead of moving over to the next line

I use bash shell $ bash --version GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc. $ Sometimes, when typing a command on the prompt ...
1
vote
0answers
13 views

wrong home folder in programs [duplicate]

Possible Duplicate: Wrong starting folder in Gnome programs under KDE Hello, I originally installed ubuntu but switched to using kde. Now every gnome programs (e.g. gnome-terminal or gedit) ...
1
vote
3answers
1k views

What is the best way to shutdown hard disk?

Right Now I'm using hdparm command in unix to shut down the hard disk but there are few issues with it. when it wakes back up it consumes lots power. Is there any other way to do it? Many times when ...
1
vote
2answers
245 views

Unix (Gnu/Linux, Mac OS X) program or command to count HTTP connections made by a program

I have got a testing suite for an applications that performs lots of HTTP requests. This number changes each time you run the tests. Is there a Unix command or program that "listens" to another ...
1
vote
1answer
1k views

Postfix on Snow Leopard unable to send MIME emails, including header contents in message body

I configured postfix on snow leopard by adding the following line to /etc/hostconfig: MAILSERVER=-YES- I then configured postfix to relay through my ISP's SMTP server. I added the following two ...
1
vote
1answer
960 views

Rsync: Only preserve meta (time, group, etc) on files and sub-directories, not root directory

I am copying some files (all except hidden ones) using rsync from one place to another using this command: rsync -Cav --delete --exclude=.* /Some/Directory/ other-host:/Other/Directory It works ...
1
vote
1answer
1k views

How to activate WIFI service on Enterprise Linux Version 5 provided from Oracle?

I have installed Enterprise Linux Version 5 provided from Oracle I am able to access Internet using network cable Please tell me how can I enable WIFI service ,so that I can use internet without the ...
1
vote
2answers
114 views

Security issues related to storing secrets in scripts

Let's say you have a program you want to run unattended, as root, which requires a secret (such as a passphrase; something you don't want other people to find out), which can be read from an ...
1
vote
1answer
545 views

IOError: invalid Python installation …/config/Makefile (No such file or directory)

After updating from OS X 10.8.3 to 10.8.5 and XCode my python installation stopped working. This is the output when I try to execute python. Traceback (most recent call last): File ...
1
vote
3answers
2k views

Loop through a directory unix shell programming

Use a for loop to go through the filenames in the directory. In this version, only loop through the filenames that do not have a ".old" extension Inside the loop, rename the file to the new name.
1
vote
2answers
15k views

scp error: “Permission denied (publickey). lost connection”

I tried to scp an svn dump to savannah, but I got the following error at the end. Permission denied (publickey). lost connection The scp command and verbose output are below. Any ideas? ...
0
votes
5answers
1k views

Second root account

i'm new in linux, so i'm sorry if my problem is a bit confusing. I'd like to do following: create a second root account write the file by using this account the first root account shouldn't be able ...
0
votes
2answers
732 views

Is it safe to delete these files?

I came across these files in my home directory: .bash_history .bash_sessions (directory) .lesshst and I cant help my OCD-ness and I want to remove them, is it safe?
0
votes
6answers
225 views

Unix command history — finding a command fast

Is there a way (or a specific shell) to navigate the history in the following way: let's say I wrote the following command two weeks ago: scp ../../../file.txt ../../../... I don't want to use the ...
0
votes
6answers
5k views

let me know alternate command in DOS for following unix command

find /coe/informatica/v712_OMJ/AONE/SrcFiles/Archive -name *AccessOne_DF_BIFs.txt|cut -f8 -d "/"|cut -c 1-12 > ...
0
votes
5answers
390 views

Command line way to view a line of a file with context?

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux: $ (something) -l 154 stuff.py 150: def foo(bar): 151: """ 152: ...
0
votes
6answers
6k views

Copy file from remote UNIX terminal to local system

I use putty on Vista to connect to remote UNIX shell. But I want to copy files from that remote server to my local Vista system. How to do that??