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

0
votes
1answer
31 views

Unix 'find' command to include/exclude subdirectories

Say the folder structure looks like this: . |--folder1 |--subfolder1 |--subfolder2 |--subfolder2 |--folder2 |--subfolder1 |--subfolder2 |--subfolder2 |--folder3 ...
1
vote
1answer
145 views

kernel warning disk error for command write - solaris svm

Recently this warning came up on my message logs, scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@0,0 (sd0): Oct 27 00:14:44 Error for Command: write(10) Error Level:Retryable ...
-1
votes
1answer
29 views

head with error on hitting limit

Is there a standard command I can use to limit the size of an incoming stream and throw an error when the limit is hit? I'm streaming backups, and want to protect against overly large sizes. For ...
-1
votes
1answer
46 views

Differences between UNIX and Linux Drivers [closed]

I've been trying to find an answer to this, been on a wild goose chase. Since UNIX and Linux have different system architectures. My question is on the differences between the drivers for the SPARC ...
1
vote
2answers
62 views

Long string insertion with sed

I am trying to use this expression to insert the contents of one text file into another after a give string. This is a simple bash script: TEXT=`cat file1.txt` sed -i "/teststring/a \ ...
0
votes
1answer
66 views

IP routing Solaris 9 access the internet from local network

I am trying to configure the NICS on the Solaris Sparc server. My problem lies in getting out to the "Internet" from the local network. I have requested the NIC to receive a DHCP server address ...
1
vote
1answer
64 views

Timestamp Updating Constantly on /dev/null

I've been working on a problem with a /dev/null file on an AIX system (just for background it looks as though it was inadvertently deleted and recreated as a normal file by somebody), but in trying ...
-1
votes
2answers
100 views

how I can get the value of JAVA_HOME from my client

I have nagios client and server, how I can get the value of JAVA_HOME from my client? I have use to set shell command in script that is running from remote host: echo $JAVA_HOME and printenv | grep ...
0
votes
1answer
109 views

pbs check how much cpu a job is using / job % cpu usage

On a cluster a job is submitted to run on N CPUs. qstat -f doesn't show how much CPU resources the job is using other than the time. How does one check whether 100% of each CPU power is used? It is ...
2
votes
1answer
142 views

vsftpd default permissions for website directory and ftp

I'm trying to setup vsftpd and my users correctly. I can connect to the ftp with my user but I can't create any directory or file. My websites folder will be there: /srv/www/domain vsftpd.conf ...
1
vote
1answer
93 views

Sftp download directory while excluding files with certain extension

So I know I can download a whole directory like this: sftp> get -R * How can I exclude all files with .ipa extension though? I want to download everything except .ipa or .ipa.* files from a ...
4
votes
2answers
148 views

DFS and Access Based Enumeration - Unix devices cannot access it

I'm currently experiencing issues with DFS shares and ABE, enabled on a Windows Server 2008 R2 File Server. Everything works fine with Windows, the problem is with Linux/Unix machines. They aren't ...
1
vote
1answer
67 views

How to prevent users from renaming files while providing write permissions on Linux [closed]

For some special purpose, I want to prevent non-root users of the Linux Server from changing/renaming the filenames. However, they can modify and write to the contents of the file. How to do this from ...
1
vote
0answers
32 views

Apache, php, maven and me—pemissions…

I have setup a local Apache2, with PHP and mysql. I wrote a maven build script to deploy my page on that local server. All that is working fine except for one thing: When I instruct maven to clean up ...
-2
votes
1answer
95 views

Need help finding (linux compatible) source code for 'pathchar' program

Am unable to locate the source for pathchar (Van Jacobson's wonderful hack - http://www.caida.org/tools/utilities/others/pathchar/) inspite of searching over many places. What happened to it and is it ...
1
vote
2answers
41 views

How to exclude requests from unwanted sources

Scenario: Client buys our analytics services and includes our analytics SDK in his mobile app. Users who download the app will start sending us lots of data. When the client stops paying for our ...
0
votes
1answer
33 views

Is there a tool for indexing a directory in order to perform cheap content search? (hashing by word, for example)

I am often using grep -R on an entire directory tree to find all files that contains a specified word. I wonder if there is a tool that makes the whole operation much faster, maybe via hashing? (Unix ...
2
votes
3answers
110 views

Why use /home instead of /var?

I have seen many tutorials and real life configurations using /home to keep logs or even websites instead of leaving things in /var/logs or /var/www. Why?
0
votes
1answer
58 views

Debian mysql-proxy reserved connections

I was looking in too the mysql-proxy configuration, and decied to install it in order to make an access point to my servers whenever they reach high peak, however i want to have 5-10 reserved ...
2
votes
2answers
128 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
239 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
37 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
41 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
126 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
631 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
137 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
133 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
71 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
261 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
146 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
61 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
59 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
52 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
163 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
64 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
244 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
55 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
198 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
107 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
87 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
245 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
31 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
138 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
70 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
34 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
73 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
282 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
274 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
126 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 ...