Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [unix]

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

1
vote
0answers
41 views

HP-Unix: C-shell:Disk space checking

I have 10 devices that using hp-ux and i want to check the disk space in each devices. my requirement is if the space more than 90%, the info of device ans space will be save to a log. this is list of ...
0
votes
1answer
78 views

Checksum error while installing ambari

While installing ambari server,getting following error. yum install ambari-server -y Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Updates-ambari-1.7.0 | 2.9 ...
-2
votes
1answer
201 views

UNIX Shell Script IP Lookup

UNIX/LINUX: I'm not there yet with writing shell scripts. Trying to write a short shell script that asks user to input IP address and performs host lookup of IP address and returns a name if available:...
-1
votes
2answers
92 views

LINUX/UNIX basic command questions

I'm trying to write a single command line that uses netstat and grep to count all connections in a state of “ESTABLISHED” and outputs a single number representing how many connections are currently ...
0
votes
4answers
72 views

How can I tell which static IP address one computer uses to connect to another computer?

I have a workstation connected to several internal networks, with a different static IP address on each of them. Through one (?) of these networks, I can connect to a server over ssh. How can I tell ...
3
votes
1answer
2k views

uWSGI TCP/IP host:port vs Unix socket

We are running a Python WSGI server (uWSGI) and changed to socket file instead of a tcp/ip localhost:port connection. Now our uwsgi logs are full of errors like IOError: write error SIGPIPE: writing ...
7
votes
2answers
622 views

Is there a way of exporting fstab info for device which is currently mounted?

Does there exist any tool which can tell you what the fstab line for a mount should be? Ie. it looks at something which has been mounted manually and tells you the line which you would have to add to /...
-2
votes
2answers
1k views

Does /etc/host.deny blocks http requests?

If I put the entry into /etc/hosts.deny, would it block all requests from that IP address to my machine (like iptables do), or would it only block access for some applications like SSH?
-2
votes
1answer
316 views

Grep is not working without having read permissions [closed]

I am in a folder where I do not have read permission in contents. ls -l List all files sucessfully. I want to count files that have some attributes in their name with: ls -l | grep file????.tar.gz ...
1
vote
2answers
2k views

list of size of directories of /dev/sda mounted as / without other partition or mounter

as you can see here: Filesystem Size Used Avail Use% Mounted on udev 10M 0 10M 0% /dev tmpfs ...
0
votes
2answers
69 views

How to ensure that the script and its command get killed once terminal is closed

I have written a script and it is working fine . It do some tail and grep operations. When I am closing my terminal and the greping the PID of my script , I can find the script is still present in ...
0
votes
1answer
145 views

save output of a python script to a text file

how can i save output of this python script to a text file? this is a KMS server which clients connect to it and activates their windows or office. i wanted to save the log in a text file. I should ...
0
votes
1answer
519 views

How to edit /proc/partitions file in linux

I know /proc is a VFS and cannot be updated by user from shell prompt. this is my understanding from the beginning. Now , I am writing one code and where I am taking care of corrupted /proc/partitions ...
0
votes
2answers
2k views

ErrorDocument not working with .htaccess file

I am trying to use a .htaccess file to setup specific behaviors for one directory. My .htaccess is as follows: ErrorDocument 401 /var/www/secret/logging.php AuthName "My Password Protected Site" ...
0
votes
2answers
59 views

How to unlist partitions from fdisk command in linux

While working on one of my server I noticed that there are no partitions listed under "fdisk -l" command. However the machine is working just fine. Wanted to know following things if anyone can help. ...
1
vote
1answer
356 views

How to pipe a file being written to?

I have a binary file that is being written to continuously. I need to read the full content of that file to a pipe (either to nc or to a FIFO) and keep reading it while its is written (i.e. the ...
1
vote
1answer
123 views

VPS freeze every few days

I have a recurring problem with one of my applications/servers i'm responsible for. I basically had one VPS with all the stack needed to run my application (nginx + postgresql + ruby + ruby on rails + ...
2
votes
0answers
618 views

Nagios in activating status (doesn't want to start)

I've experienced issue when installing nagios on VM (Centos 6) I followed steps described in http://www.tecmint.com/install-nagios-in-linux/ Everything was fine untill [root@tecmint ]# service ...
1
vote
0answers
47 views

Monitor disk occupancy

The problem should be simple, but not so obvious to me. I have a process that creates temporaries in a specified directory, under MacOS X. I need to find the disk occupancy of the process, if ...
2
votes
1answer
754 views

I need a command to create a unique fingerprint from unix machine

I need to create a serial number for my application in a Unix machine. The generated serial number should be unique Do not change over time (Only changes after hard drive or mother board changes) Do ...
4
votes
2answers
304 views

How can I combine two commands to tally data from compressed and uncompressed log files?

I am running this command to get a tally of failed login attempts from a server’s auth.log and it works well: sudo cat /var/log/auth.{log,log.1} | grep 'Failed password' | grep sshd | awk '{print $1,$...
1
vote
1answer
4k views

What shebang for Anaconda Python on my directory of Server

I have anaconda python distribution in ~/anaconda/bin/python but what shebang can I use to call this version of python instead of the old one that is default on the server? # /opt/python/bin/python2....
1
vote
0answers
651 views

Interpreting TCP Traceroute results here?

I used to be able to connect via SFTP to a remote server to download files. Our local server is Windows 2008 Enterprise and the remote server is Unix. The local computer and the remote server are ...
-2
votes
1answer
351 views

Only downloading new folders/files with rsync

I periodically run a rsync command which downloads new files from my remote server. The files that are downloaded are stored in folders, once I have downloaded them to my local machine I may delete ...
0
votes
1answer
33 views

Know which file is related to a process execution

In Unix, with top I have an output similar to this: 13916 root 18 0 903m 129m 9936 S 51.4 0.1 3:07.01 php How can I know which file is this php process executing? For example: 13916 root 18 0 903m ...
2
votes
1answer
260 views

Archiving bunch of files in the fastest possible way [closed]

I'm implementing a torrent downloading and archiving system. I want to download a torrent file (which contain several small files) and then archive it. My Disk performance is poor. so i want an ...
0
votes
1answer
87 views

How do I create a shared directory under root?

I'm trying to create a shared folder on my root partition that anyone in a particular group can read and write to and any new files within that folder are also read writeable by anyone in that group ...
1
vote
0answers
30 views

Simple anti DDoS protection in FreeBSD [duplicate]

I have a lot of request from data centers to my web server on FreeBSD and sometimes it've have a lot of performance problem with my web projects. Adding to IPFW list all IP's data centers is ...
5
votes
1answer
119 views

Is it possible to increase the rate at which ntpd updates the system clock?

We have some hosts that have gotten out of sync due to ntpd being mis-configured, with an ntp server that was unreachable. Our clocks on some hosts (CentOS 6) are now upwards of 30 seconds off (in the ...
0
votes
2answers
94 views

Moving files between hosts using intermediate storage area [closed]

Is there any good existing solution for moving files from host A to host C, using host B a an passive intermediate storage area. A -> B -> C Limitations Host A and host C are on separate networks ...
-3
votes
1answer
3k views

Change existing file type from standard file “-” to directory “d” as shown with Unix ls -l

In summary, if I use ls -l it yields something for a directory like... drwxr-xr-x and the reported error for a directory with files in it, is it shows as a standard file and ls -l yields... -rwxr-...
-1
votes
2answers
683 views

netstat on unix server shows strange connections

netstat is showing a lot of unknown connections from different strange places. are they just attempt to establish connection? or is my server compromised? I've removed my local addresses from the log ...
1
vote
2answers
1k views

Finding out what happened that I cannot connect to SFTP server?

We have a server with Windows Server Enterprise that runs a simple console app that connects to another server via SFTP in order to download files. I believe the remote server is Unix server, but I'm ...
1
vote
2answers
749 views

Crontab - How to determine current active processes started by cron

We have a very sensitive application which heavily makes use of crontab and we would like to track of how many processes started by crontab are still running. In short, we have a limit of 300 cron ...
0
votes
1answer
248 views

Easiest way to view puppet reports on pending (i.e., --noop) changes

My Puppet environment consists of a master and numerous agents which are run manually via the invocation of puppet agent --test. I am attempting to find the easiest (i.e., human readable, at-a-glance ...
1
vote
2answers
2k views

Why can't I cd to a root owned folder, as a member of the root group? [closed]

I verified I'm a member of root: user_me@host1:~$ sudo useradd -G root user_me useradd: user 'user_me' already exists However, I can't cd to /root/testing from my user: user_me@host1:~$ cd /root/...
3
votes
0answers
596 views

Unix Server Vs Windows in application deployment (Not a web application) [closed]

Ok, I was browsing through a lot of forums, but I couldn't get a very convincing answer for the same. My question is - What is the advantage of deploying an application in UNIX server instead of ...
7
votes
2answers
567 views

Setting timezone to UTC in unattended install

In FreeBSD, I'd like to set the timezone to UTC in an unattended way. If I run tzsetup, and select "yes" and "a" in the dialogs, for choosing UTC, I see that there are no /etc/localtime files present. ...
0
votes
1answer
133 views

WUFTP: sleeping: fcntl lock of pid file failed: Permission denied

Our main and largest FTP server, which uses wuftpd as FTP server software is facing constant drops of connection. It has been running for years now, all of suddenly, is presenting this problem. ...
0
votes
1answer
2k views

Postgres /root": Permission denied

why on ubuntu 14.10 every time that i try to start the postgres on: sudo -p 'sudo password: ' -u postgres /usr/lib/postgresql/9.4/bin/initdb -D /mnt/postgresql/9.4/data show this: could not ...
5
votes
3answers
6k views

Linux's /etc/init.d - symlink, hard link, or actual file?

I have a Debian and an RPM package that requires a start/stop script to be added to the /etc/init.d directory. Recently, I was informed by a remote developer that "those in the know" know that "best ...
3
votes
2answers
365 views

Can idle NFS mounts on several clients impact performance

We had a NFS server at work which was working with slight lag. However as more mount points were getting created at several clients(serviced by the same server) we noticed the performance coming to a ...
0
votes
1answer
124 views

CPIO ulimit reached error

I have been googling this without much luck. I hope someone can help here. We have a customer running SCO Unixware 7 machine. This machine does a daily backup to tape. These have stopped running. ...
1
vote
2answers
453 views

How to prevent rsync from chown'ing remote users files

I'm doing rsync /local/path/to/src user1@remote:/path/to/dest. dest belongs to user2@remote. How do I keep rsync from chown'ing dest to user1 after syncing? Please note that I have already tried ...
0
votes
1answer
687 views

Hostname changes history in unix systems

I've been trying to find a command or file that contains all the previous hostnames a Linux/Solaris machine has had, but I can't seem to find any way to do this. The question is really about the ...
0
votes
1answer
121 views

Using PowerCLI Versus using asp.net WMI to scan and retrive informaion about ESX hosts

I want to scan and view information about ESX hosts which have "ESXi 5.0 Update 1" as their OS inside my asp.net web application. mainly to be able to retrieve the ESX specification and all the vms ...
2
votes
1answer
1k views

logrotate compression parameters

I've been using cstream for a while for many things, for example to reduce the impact that mysqldump has on drives. However, I have always done so by calling the binary directly from a script or ...
3
votes
2answers
379 views

Postfix virtual domain mapping for a Linux username containing @

I could not make Postfix work with Linux usernames containing @ Postfix has virtual domain map, in /etc/postfix/virtual It looks something like this: domain.ru domain.ru ...
1
vote
3answers
1k views

how to find proces which is pinging localhost

How can you find the process issuing ping to localhost? While it is not script, where the ping command can be simply grep from process table. I have used wireshark, but it is of no help to find out ...
1
vote
2answers
132 views

Dangers of closing file descriptors

In the Stack Overflow question Check if a program exists from a bash script the accepted answer notes that closing stderr is dangerous: (minor side-note: some will suggest 2>&- is the same 2>/...