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
0answers
1k views

How can I copy files recursively without overwriting the directories

On linux, let's say I have some files like this: dir1/file1 dir2/file2 and I want to copy them to a destination that already have dir1 and dir2 and looks like: dir1/file1 dir1/file1a dir2/file2 ...
1
vote
1answer
3k views

How to get CPU %user %system in FreeBSD without using top?

Is there any other FreeBSD command besides "top" which can be used to get the following values? CPU: % user, % nice, % system, % interrupt, % idle My problem to be specific is ...
1
vote
0answers
75 views

Supervisord 3.0a8 on debian ignores child logging options

I tried tried to configure the logging for supervisor child processes (http://supervisord.org/logging.html). Here's my config: [program:Test_Prog] command= /usr/bin/php TestProg.php process_name=%(...
1
vote
0answers
173 views

Software to proxy socket connections across a TTY-like link

I'm looking for some software that can perform remote forwarding of socket connections across a TTY-style link. I have two machines, A and B. I have admin privileges on A, but not B, but on machine ...
1
vote
1answer
354 views

Missing firmware for wired NIC on Debian

I'm trying to install Debian 64bit from a Debian live image using YUMI on my usb drive to an Inspiron 6400. I am missing firmware for the Broadcom BCM4401-B0 100Base-TX. I have tried configuring it ...
1
vote
1answer
894 views

aix 5.3 cannot execute or load .profile automatically when login

I am using AIX 5.3, after I login as an Oracle user, I got a prompt to ask me to give the oracle home directory. If I manually type in ". .profile", it would work. My AIX team has built this new ...
1
vote
1answer
220 views

How can I get a list of directories with ack?

I have a directory listing as follows (given by ls -la): total 8 drwxr-xr-x 6 <user> <group> 204 Oct 18 12:13 . drwxr-xr-x 7 <user> <group> 238 Oct 18 11:29 .. drwxr-...
1
vote
1answer
1k views

755 directory permissions aren't allowing file creation by owning userid?

I had overly permissive directory permissions (777) on my home dir, and just changed these to 755: # cd # pwd /home/machinename/myuserid # ls -ld . drwxr-xr-x 9 myuserid mygroupid 4096 ...
1
vote
1answer
251 views

Get PS1 evaluated value, or shell prompt value

I am trying to find the command that would return me evaluated value of $PS1 variable or just shell prompt with current path. e.g. foo-user@bar-pc:~\bar I would like to avoid using something like, ...
1
vote
1answer
213 views

Why is process not being displayed by TOP

I am running a Mathematica script (this question probably doesn't fit in Mathematica.SE however) and I know that it generally takes up a lot of RAM and loads up my cores. However, althought pgrep ...
1
vote
0answers
180 views

How do I search/replace symbolic links?

I've been having this issue for a long time, and I don't want to reinstall the whole system, yet. Now there's an app that runs on Java, and it doesn't even open. The logs says some cocoa files were ...
1
vote
1answer
183 views

what happens when moving hard linked file across filesystems using mv?

I have a collection of folders on one file system which have been hard linked together (the contents are identical). What happens when I move one of the folders to another filesystem on another disk?...
1
vote
1answer
42 views

What is [root@server ~#] as opposed to [root@name ~]#

What is [root@server ~#] as opposed to [root@name ~]#? Notice the # is inside the bracket on the first one and outside on the second one. What is the first one and what command in a terminal gets you ...
1
vote
0answers
114 views

Samba jobs disappear from Windows spooler

I searched for similar issues to no avail, yet I have multiple systems exhibiting the same bizarre behavior. Samba jobs printed to Windows printer shares arrive at the Windows workstation, but then ...
1
vote
0answers
167 views

What is the best tool to perform an automated/unattended virtual guest os install?

I would like to be able to add (and remove) virtual machines from my Ubuntu (12.04) host OS using 'unattended guest os installation' method. What I mean here is to pass a command to the software via ...
1
vote
1answer
90 views

Do I need to recompile command-line utilities after upgrading Mac OS X?

This is probably a trivial question, but I have the GNU coreutils installed, along with many Python packages and some other things. I was expecting that I may have to re-compile or re-install some/...
1
vote
0answers
95 views

ZIP and copy backup from Windows server to Unix

I have a Windows application server which is working on weblogic. Everyday backup is happening for the server itself – it is increasing the load on the server. I have an HP Unix server for backup ...
1
vote
1answer
810 views

How to create a file with symbols in its name

How can I create a file starting from $SHELL, using quotes like " ",' ', \? I tried, but it's not working.
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
41 views

LESSOPEN equivalent for lv

Is there any LESSOPEN equivalent, which is an environment variable used by less, for lv?
1
vote
1answer
964 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
721 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
716 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
175 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
853 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
123 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
693 views

Solaris + sorting file according to date and time by sort command

I have along list that created in /var/tmp/file.txt from some script (in Solaris machine) the following list have 4 fields please advice how to sort the list according to the following TIMESTAMP ( by ...
1
vote
1answer
476 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
558 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 --include=...
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
195 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
290 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
416 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
327 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
867 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
128 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
339 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 /home/...
1
vote
2answers
599 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
284 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
498 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.