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
3answers
193 views

Is there a utility to read environment variables from an env file and then run a command (more lightweight than foreman)?

foreman can read .env files and set environment variables from the contents, and then run a program e.g. foreman run -e vars.env myprogram ...but it does a lot of other things (and is primarily ...
5
votes
2answers
240 views

Why are Unix applications documented with an number in parenthesis with man?

When I try to get help on a Unix command, I get reference to say tar(1) or lsof(8). Why is there a number within parenthesis and what does it refer to exactly ?
0
votes
0answers
45 views

How to remove a device file on solaris?

A device file was created as a result of running the Veritas qiomkfile command: # cd /sybase/k2rpt_sql/TOR_K2RPT_UAT/sybase_devices # /opt/VRTS/bin/qiomkfile -s 2000m log06.dat.qio # ls -l ...
0
votes
1answer
45 views

What is setgid(2) used for? [duplicate]

I'm having trouble understanding POSIX permissions, specifically setgid(2). I understand that setuid(2) changes the user ID of the calling process so that it takes on the privileges of the new user. ...
0
votes
2answers
201 views

Terminal output being cut off

I'm using ZSH as my shell and running a Debian 7 installation on a Linode box. When I ssh into this box and run any command where the output is larger than the window, the output that extends beyond ...
2
votes
2answers
46 views

Unix how to determine if a program can be executed

I am writing a script to create the source environment. Handling the PATH part is easy. Though how should I check if a program can be executed correctly when its path is added into PATH? Using which ...
0
votes
2answers
875 views

can you help me setup DNS forwarding

I have a dns server in a subnet of the corporate network and i want to tell it to forward to the main dns servers when it cannot resolve this is my file: // // named.conf // // Provided by Red Hat ...
0
votes
1answer
145 views

Do any Unix/Linux FTP daemons allow users to be “jailed” without using chroot?

When setting up an FTP account for a specific purpose - e.g. as a drop-point for sharing data files - it seems sensible to give the user access only to the particular directory, and no view of a wider ...
0
votes
1answer
193 views

how to see what user preferences set via xset are currently set to?

When using an X display server, one can set various things via "xset". How, in general, can one view what these preferences are currently set to? If a general answer is not possible, then is there a ...
0
votes
1answer
144 views

How to mention the prefix directory path in CURL command

I am new to Linux, i want to write the perl script to download the files from FTP sites but here i want to use curl command to download the files. which is working fine in wget command but not working ...
1
vote
2answers
353 views

Shell script command output in if condition comparison fails to compare to same value string

I'm incorporating a script snippet which determines Android version via: adb shell getprop ro.build.version.release which returns: 4.1.2 or 4.0.4 The snippet currently looks like this: if [ "$(adb ...
2
votes
3answers
179 views

how to convert a running process into a nohup and keep a logfile

I have a process currently occupying a terminal ]$ command some_argument I want to exit from the terminal and go home, but in the mean time I don't want to kill this running process. For the ...
3
votes
3answers
76 views

How can a sh script determine if it was started as a cron job as opposed to interactive or background?

I'd like to use the same scripting for cron and interactive, just wondering if there was a universal way over UNIX/Linux systems to easily make this determination.
2
votes
2answers
62 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
54 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
185 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
75 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
276 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
66 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
273 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
134 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
91 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
327 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
40 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
168 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
0answers
79 views

Is there a way to catch system broadcast messages

Is there a way to catch system broadcast messages (like those which are send to all tty users to inform of a shutdown) and send them via e-mail to a user?
2
votes
1answer
35 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
97 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
564 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 ...
0
votes
2answers
315 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
165 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
615 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
52 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
134 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
50 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
1answer
182 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 ...
1
vote
0answers
80 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
144 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/ % ...
1
vote
2answers
76 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 ;
-4
votes
3answers
219 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
108 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
298 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
415 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
10answers
5k 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 ...
0
votes
1answer
39 views

Unix box blocking an IP?

I have inherited a Unix box that is now running in AWS in an EC2 instance. Everything has been working fine until the other day we were doing some performance testing on the web application that is ...
2
votes
1answer
882 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
71 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 ...
2
votes
2answers
2k 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
150 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 ...