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

2
votes
2answers
68 views

Can `top` show average data?

top shows instant resource usage. Also it has -d option that sets refresh rate. But how can I get average %CPU for processes for 1 minute?
-1
votes
2answers
59 views

Insight Into System CPU Usage [closed]

We've noticed that top doesn't give much insight into sys CPU usage. It only appears to give CPU percentages for user. Are there any tools out there that give more insight into System CPU usage?
3
votes
3answers
321 views

Cleaning up junk and logs on unix/linux

I manage some unix systems, and users on my system are creating a lot of junk and littering their work areas. I am running into filesystem full every day. There are many terabytes locked up and is ...
1
vote
2answers
150 views

If I know the PID number of a process can I know its name?

If I have the PID number for a process (on a UNIX machine), how can I know the name of its associated process? What do I have to do?
0
votes
1answer
474 views

NGINX Reverse Proxy Sharepoint 2010 authentication fails

When presented with the Windows forms based authentication after entering the users credentials I am prompted again for a username and password. This just keeps prompting you, I see no errors in the ...
0
votes
1answer
115 views

find all end subdirectories in a tree

given the following structure: oz123@debian:~/ $ tree . . ├── a │   ├── a1 │   ├── a2 │   └── a3 ├── a1 │   ├── a11 │   ├── a12 │   └── a31 ├── b │   └── b1 │   ├── b11 │   │   └── b21 │   ...
-1
votes
1answer
619 views

Run CURL every 5 seconds

I'm very new to linux and not sure what the best solution would be for the following. I want to run a HTTP GET request every 5 seconds. I imagine some kind of service that I can start/stop at will. ...
0
votes
2answers
179 views

How can I prevent a given user group accessing global files?

Apologies if this is the incorrect forum. I am looking for a solution to a problem as follows: We have protected information on our system with global read/execute access (555) owned by a user in ...
0
votes
1answer
98 views

Copy tape device files

I've just exchanged tape drives between machines (both Unix Tru64). The device files aren't working now, and I have to do some work with them (will generate a different question). I created a ...
5
votes
1answer
855 views

Are ulimits inherited by the shell, by the user, or a combination?

When a process spawns a subshell, how is the ulimit inherited? Is it by user, by shell, or a combination? Specifically, this was found in the context of HP Server Automation jobs failing on some ...
0
votes
1answer
58 views

mysql with dom and sd cards loss data

I have a problem with a MySQL application that write on a SD card or a Compact Flash. After a data loss (a power failure, for example), if I try to retrieve the data of my db, it fails and the error ...
1
vote
1answer
422 views

Monit — Daemonize non-daemon process?

I have a ruby process that don't run as a daemon (it runs in the foreground), but can generate a pid file. My question is does Monit always expects to monitor background/daemonized processes? I used ...
2
votes
1answer
39 views

distributing access across multiple disks

I have a rather large application that requires simultaneous access to rather a lot (300+) of large files, and accesses them by reading them all at the same time. If all the files are put on 1 disk ...
-4
votes
1answer
318 views

How do I extend unix “ps -ef” command to see more info [closed]

I need to grep process by information containing in CMD column, but this column strings is cut(limited) and needed info is lost. Please suggest how can I enlarge string size allowed for CMD column. ...
1
vote
3answers
2k views

RPM ignore conflicts

is there a way to ignore rpm version conflicts by keeping the latest version installed? For example. I want to install gawk in AIX. I have all the required rpms in a folder ...
1
vote
2answers
479 views

UNIX ctime : how to keep this precious information in backups (tar)?

I have three questions related to the "ctime" information of a file. They are in bold (if you don't have time you can jump directly to them). A website on my dedicated server has been hacked. Lots ...
0
votes
1answer
434 views

Patch management on multiple systems

I'm in charge of auditing the security configuration of an important farm of Unix servers. So far, I came up with a way to assess the basic configuration but not the installed updates. The very ...
-1
votes
2answers
3k views

Shell script :: Reading a column from file & store it in array [closed]

I am working on shell script where i want to store O/P of the command in array. I have a file containing rows & columns from where i want to extract 3rd column & store all values in a array. ...
0
votes
1answer
57 views

How do I turn on port forwarding with Ubuntu?

$ssh -f -N -D 0.0.0.0:80 localhost Permission denied (publickey). I don't have anything in my ~/.ssh directory. I'm logged in as root.
0
votes
3answers
355 views

Website filtering for OpenVPN clients

I am currently trying to block some websites by their domain names for all the clients of my OpenVPN server. My first idea was to use the /etc/hosts file. But, its effects seem to be limited to the ...
0
votes
2answers
51 views

What signal is sent to running process after network fail?

I am trying to reproduce a situation where a process fails due to a network outage. I was hoping to reproduce this signal with a kill command. A normal kill command is not working. I have taken a look ...
1
vote
2answers
832 views

is there any advantage mounting an LV by UUID instead of by path?

I know I can specify mounts in fstab by either putting their path (like /dev/sda1 or /dev/mapper/myvg-logicalVolume1) or by fs label (LABEL=root) or by UUID (UUID=1234-5678-...). I see a clear ...
2
votes
1answer
139 views

In linux and solaris, what is the UUID based off of?

If you run dmidecode|grep UUID you are given a "globally unique string of characters" which can be used for licensing purposes. In linux, the format is usually something like this: ...
0
votes
1answer
339 views

automatically start and and selectively stop multiple instances of couchdb on osx

I have successfully installed couchdb via homebrew: % brew install couchdb ...and invoked mutiple instances as directed here: % OLD=/usr/local % NEW=/tmp/couchdb % mkdir -p $NEW/etc/couchdb/ % ...
2
votes
3answers
187 views

Password Change With Command Line On NetBSD

How can I change root password with one line command on NetBSD? On FreeBSD, it's something like this echo "password" | pw mod user root -h 0 ;
-3
votes
3answers
842 views

How to query specific DHCP server

is there a way how to query a specific DHCP server for an IP address? Something similar to dig @_IP_ADDRESS_ _server_name dig @8.8.8.8 apple.com Thanks
2
votes
2answers
150 views

How to get a kernel panic count [closed]

Is there any way to check the number of kernel panic that happened on a system ? If not, any idea on how to do make this new functionality ? I would like to hear about an answer for most Unix-like ...
0
votes
1answer
477 views

Puppet agent not starting?

I've attached the full output with debug to see if anyone can make sense of what is going wrong. I've tried removing /etc/puppet/ssl/ and the two nodes (agent and master) are able to ping each other ...
4
votes
1answer
2k views

sudo: How to allow only one argument to a command?

I want to add an entry to my suoders to allow one user to run a command with exactly one non-option argument. # tail -1 /etc/sudoers ALL ALL = (:tool) NOPASSWD: /bin/echo [a-z]* $ sudo -g tool ...
12
votes
11answers
9k views

Best way to go about changing a root password on 3000+ Solaris, AIX, and Linux servers?

Long story short: Big old corporation, lots of UNIX/Linux servers. I inherited responsibility for a bunch of scripts that that left a few years ago. One of them was a script that would be run every ...
2
votes
1answer
1k views

Linux- Permission denied?

I'm installing Neo4j server as a linux service, but when I install it, I get the following message: /sbin/insserv: Permission denied What is this? What should I do? I'm running everything with ...
-3
votes
1answer
35 views

find maximum of My list [closed]

I have List like this Apple 1.09 Orange 20.01 Banana 2.34 Use cut, sort, head, and tail to determine the maximum and minimum particle momenta. Which particles are they?... this is my code: cat fn ...
-1
votes
1answer
78 views

Is there a standard place to install software that doesn't follow the Filesystem Hierarchy Standard?

Let's say I'm building and installing some third-party software called foo. I want headers in /usr/local/include/foo, shareable read-only data in /usr/local/share/foo, and so on. But let's say foo ...
4
votes
3answers
15k views

Move files to another directory which are older than a date

I am looking for a solution to move files that are year older from today. My log partition is getting full, but I can not remove them. They are needed for a long long time. Anyway one solution I came ...
2
votes
1answer
237 views

Using pv with a Python script: monitoring progress when uploading to AWS Glacier using the boto glacier utility

I am looking to use boto's glacier command line tool to upload data to AWS Glacier. I'd like to monitor the progress of my upload. Normally I use pv to monitor progress. I've perused the code of the ...
2
votes
1answer
76 views

schedule a job to run only “once” after 50 seconds

I have a process which is designed to do a specific task in case of events. Requirement is to run a specific command 50 seconds after an event occurs. Cannot modify the code to put sleep there as it ...
0
votes
1answer
219 views

What do these kernel errors in my logwatch mean?

I was reading my logwatch this morning and I've noticed that there are a lot of kernel errors. I'm on CentOS 6 and the machine acts as a web server. Can anyone help me understand what these mean and ...
4
votes
4answers
14k views

How to recover free space on deleted files without restarting the referencing processes?

When big files are deleted on a server, the files might still be referenced by processes, so the file system doesn't have more free space. I tried to use lsof, but it seems it didn't list the deleted ...
1
vote
2answers
79 views

What is this specific shell script statement validating?

I'm not a good Shell Script expert. Can somebody help me to understand and explain the statement [ ! -z ${TRUE:-} ] && [ ${TRUE:-} == 'true' ] &&from the following snippet. What is ...
1
vote
1answer
263 views

SSH on FreeBSD 8.1 sshd is not running

After reading many pages of documentation and articles on how to telnet or SSH into FreeBSD as root, none have given me a solution that actually works. I am looking for a how-to-remote-into this ...
2
votes
1answer
1k views

How can I use the home, end, page-up, page-down keys on Solaris via PuTTY?

I love the shortcuts home, end, page-up, page-down, but I am unable to use them via PuTTY on Solaris servers. Windows PuTTY => Linux desktop via SSH, works fine. Windows PuTTY => Solaris ...
-1
votes
1answer
797 views

Automate git-pull, stuck with keychain

I'd like to create a cronjob to automatically run a git-pull every minute. The problem is that my repo is private, I had to create keys on my system (Ubuntu Server 12.04). I installed keychain and ...
0
votes
1answer
59 views

How I can Monitor other application and resources from IBM WebSphere Application Server 7.0

I have IBM WebSphere Application Server+ 7.0 , and I deploy many java application on this server , from other hand I have stand alone java application ( this application is financial application and ...
1
vote
1answer
73 views

bash_history file and history command showing different entries

I am using the Terminal app on OS X to try and clear my command history. The entries within my $HOME/.bash_history file do not match what is returned by the history command. The echo $0 command tells ...
-4
votes
1answer
37 views

Two servers mails [closed]

is that it is possible to have two mail servers in parallel, ie a primary through which mails are routed to the outside and a secondary for the exchange of mails locally. and the two servers are ...
2
votes
2answers
386 views

Why need to use exec in upstart script?

I often see some upstart script has the to use exec, what is the point? Seems removing the exec the script also work? e.g. start on runlevel [2345] stop on runlevel [06] exec /path/to/program
1
vote
1answer
692 views

List environment variables of a running process on AIX without character limit

Today I was trying to debug an issue where a process was not picking up the correct environmental variable. It took us hours before we realized that it wasn't picking up the correct variable. I tried ...
0
votes
1answer
580 views

OSX terminal bash permission denied after GIT changed file permissions while cloning repo

I am a beginner at OSX/Unix command line. I have a GIT repository that was created on my OSX computer. Recently I cloned the repo and went to run a bash script within the repo via ./BashFile.sh. This ...
0
votes
1answer
786 views

Count how many rsync process are running on unix machine

I am using Unix machine $ uname -a SunOS machine-name 5.10 Generic_127112-11 i86pc i386 i86pc How would I get the number of rsync process running on my unix box. I tried $ ps -ef | grep rsync ...
12
votes
1answer
382 views

Can you help me with my software dependency issue?

This is a Canonical Question about Compile Dependencies and Package Management. I have a question regarding compiling ports/software or installing RPMs on my *nix server. When I try to do this ...