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
141 views

How to have supervisord follows the new unicorn process after USR2 rolling restart?

I have configured supervisord to track my unicorn server process. When I send USR2 process, this performs a rolling restart. After this operation the old unicorn master have restarted and then changed ...
1
vote
1answer
186 views

Client side certificates in client browsers with unix server for management

We are currently running Unix dedicated servers for everything (Web cluster, database, FTP, batch, ...) except for a Microsoft Active Directory Certificate Services. The sole purpose of this Windows ...
1
vote
1answer
113 views

Logging commands executed by remote shell scripts

I've noticed that when running a script that connects to a number of our servers (to essentially run batch commands) that the commands aren't logged in the user's .sh_history or .bash_history files. ...
1
vote
2answers
1k views

Understanding ulimit -u

I'd like to understand what's going on here. linvx$ ( ulimit -u 123; /bin/echo nst ) nst linvx$ ( ulimit -u 122; /bin/echo nst ) -bash: fork: Resource temporarily unavailable Terminated linvx$ ( ...
23
votes
3answers
2k views

Why is Linux reporting “free” memory strangely?

This is a canonical question about how Unix operating systems report memory usage. Similar Questions: Server refuses to use swap partition Memory Usage in LINUX I have production ...
1
vote
0answers
104 views

Limiting memory usage and mimimizing swap thrashing on Unix / Linux

I have a few machines that I machine that I use for running large numbers of jobs where I try to limit the number of jobs so as not to exceed the available RAM of the machine. Occasionally I ...
0
votes
1answer
211 views

Disk size and space detection

i'm running a server with debian stable : Linux myhostname 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux It is running a nginx, mail server,ftp server and a mysql database. ...
0
votes
1answer
3k views

SFTP: Move (rename) many files from one folder to another (not one by one)

I need to move all the files from current_path to current_path/DestinationFolder. The version of SFTP I'm using is: SFTP protocol version 2 The available commands are: sftp> help Available ...
10
votes
3answers
195 views

*nix convention for storing user logs?

What’s a conventional log location for processes that run on behalf of users? ~/.foo/logs/ — my top choice but not super awesome /var/log/foo.uid/ — Non-system users can’t create directories here, ...
-3
votes
2answers
128 views

Create a public key to allow scp server to server

My scenario is this, I am trying to SCP from server1 to server2 and and I need to create a public_key on server1 to allow server2 access to it. How do I do this?
6
votes
2answers
323 views

Freebsd Secondary Group not allowing folder deletion

TLDR: I have a user that is a member to a group as a secondary group. This user can delete files with 664 perms as a secondary user, but not directories with perms of 775. Details: I have a user. ...
-6
votes
1answer
77 views

On Unix/Linux OS machines are showing less memory [closed]

Why on Unix/Linux OS machines are showing less memory (RAM) than it is? Let say i have Ubuntu machine whose have 1024 MB ram, when i open "System Monitor" "Resources" tab it shows 1001.2 MB. How i can ...
1
vote
3answers
1k views

What does S in linux file properties mean?

I'm creating directories and changing the permissions of them in perl with the following code: umask 0000; mkdir $path, 0770; chown $userid, $groupid, $path; Now when I do ls -l on a directory I've ...
11
votes
4answers
1k views

Available disk space on Unix/Linux OS

How to get available disk space on Unix/Linux OS, including unallocated space (which wasn't assigned to any partitions)?
1
vote
2answers
97 views

Resolving hosts on Unix and Window

Any Unix program (command) to connect to a domain uses a method 'gethostbyname' from RESOLVER. First thing what this method does is reading /etc/nsswitch.conf Where it finds a line: 'hosts: files ...
1
vote
1answer
61 views

Network connection on Linux

A general question about network connection on Linux : once a network connection goes into time_wait, is it still tied to the process ? Does it still use resources like say filehandle ? Reason I ask ...
0
votes
3answers
478 views

imuxsock messages in syslog and system becomes unresponsive

I am getting such messages in syslog. rsyslogd-2177: imuxsock lost 21869 messages from pid 3418 due to rate-limiting rsyslogd-2177: imuxsock begins to drop messages from pid 3427 due to rate-limiting ...
1
vote
1answer
105 views

How do I untar multiple archives from tape?

I have a tape with multiple tar files on it. I do not know how many (it was created by a third party and sent to me with minimal information). How do I untar all the files without having to repeat the ...
0
votes
1answer
159 views

Mounting device in fstab using labels

I'm trying to mount a device using a label in my fstab but it never actually mounts on boot. # LABEL=/ / ext4 defaults,noatime 1 1 tmpfs /dev/shm tmpfs defaults ...
4
votes
3answers
185 views

How to execute a command on multiple hosts using IPv6 only?

First of all there is pdsh which is essentially a parallel distributed shell which may execute commands on a list of given hosts. However, I find myself in an IPv6 only problem setting. It seems that ...
1
vote
1answer
89 views

Is it okay to copy an image file which is still mounted via a loop device?

I have a 100 GB image file which is created using dd. This image file is mounted via a loop device as read-write. I want to store a backup of this image file at a remote location. I have a script ...
1
vote
0answers
442 views

MySQL crashes when connecting from localhost with tcp (UNIX sockets work)

I have Ubuntu 12.04 running MySQL server 5.5.24. I can connect with mysql --user root -p. status shows me : ... Connection: Localhost via UNIX socket ... When I try to connect with mysql --host ...
1
vote
1answer
154 views

/var/lib for holding served data, why?

Acording to the FHS, the directories /lib and /usr/lib are both for libraries (libraries used in /sbin and user libraries, respectively). But what about the /var/lib folder? Following the same logic ...
1
vote
1answer
106 views

sudoers entries

Is there a way to have a sudoers entry that allows executing of only a particular command, without any extra arguments? I can't seem to find a resource that describes how command matching works with ...
2
votes
2answers
721 views

Function keys over SSH/PuTTY to SCO unix

I am trying to set up SSH to a SCO Unix server that runs custom software that uses the function keys on the keyboard, however the keys do not appear to be in the correct format for SCO to recognise. ...
1
vote
1answer
84 views

Gitolite SSH URL Format

So I got gitolite set up. Simple. But there is one issue I am having. The SSH urls follow the format of git@host:repo. I'm used to Bitbucket / Github where the urls follow the format of ...
2
votes
2answers
980 views

While loop read multiple lines from a grep

I'm writing a script in AIX 5.3 that will loop through the output of a df and check each volume against another config file. If the volume appears in the config file, it will set a flag which is ...
2
votes
2answers
2k views

How can I rename an unix user?

I have a user named hedgehog and I want him to be named squirrel, but I don't want to change his numeric user ID. How can I accomplish this?
2
votes
1answer
134 views

Find out what's running wget on my server

In my access.log I see requests coming from 127.0.0.1 and retrieving server's "/" and then all of graphics and CSS referenced in it. This happens regularly, every 5 minutes. I want to find out what, ...
1
vote
1answer
44 views

logrotate : Contents are missing

I'm using logrotate to rotate my log file periodically (in my case every 1 hour checking for log file size and rotate if needed using cron). I'm facing a serious issue in it. The following files ...
0
votes
2answers
213 views

find the cpu usage of a process on Ubuntu?

Is there a way to find the CPU usage of a process on ubuntu combined with the cpu usage of all the child process. And also would it be possible to get this number as a % of the total CPU usage?
0
votes
2answers
487 views

How to reduce server load without killing processes?

I am running a CentOS 6 VPS with WHM/cPanel. I am trying to move some accounts, to reduce load, so I have to run /scripts/pkgacct, however the gzip and other processes run by this script cause a very ...
1
vote
2answers
105 views

Issues while untaring in Linux- tarball created from Solaris

I am getting an error- Unknown file type 'A', extracted as normal file while un-tarring a set of files which has acl permissions set. I had created the tar file in solaris as tar -cpfv ...
2
votes
2answers
757 views

rsync protocol incompatibility

When doing an rsync pull from a remote server using the following command: /usr/bin/rsync -av -e ssh --delete --chmod=a+rwx,g+rwx,o-wx --dry-run username@server:/remote/path/ /home/dir/local/path I ...
0
votes
4answers
94 views

Seeing what background process is up to

I currently have a background process on my unix server that's running hours longer than it should be. I can't remember the command to allow me to see the output of a background process. I'll ...
0
votes
1answer
397 views

Copy directory structure from Solaris preserving all the permissions and links

I am looking to copy a directory structure with Files, I am not looking for content a 0 byte file will do. I just need to copy the directory tree with 0 byte files and links preserving the properties ...
2
votes
2answers
743 views

How do I disable command line history in Linux?

Right now, I'm aware that for all commands typed into the console, the Ubuntu system logs it somewhere. How can I disable logging of unix commands for all users?
1
vote
2answers
167 views

Different behaviour of script locally and over ssh

I have a script on a server-A Script-A #!/bin/bash -l echo "script-A.sh" | change-environment.sh When I ssh onto server-A and execute it, it works fine. However, when I ssh user@server-A ...
3
votes
2answers
1k views

Nginx to apache reverse proxy, instruct use of unix sockets

My Nginx reverse proxy works on the same machine as the webserver(apache) as follows server { server_name site.net; location / { proxy_pass http://localhost:82; ...
4
votes
2answers
1k views

Shell script to notify when CPU usage goes to 100%

sar -u 1 | awk '{print $9}' so this will give me "CPU Idle" value every second. I'd like to get email in this case the value goes to "0" 10 times in a row? What would be the appropriate way to ...
3
votes
4answers
933 views

What character can be safely used for naming files on unix/linux?

Before yesterday, I used only lower case letters, numbers, dot (.) and underscore(_) for directories and file naming. Today I would like to start using more special characters. Which ones are safe ...
0
votes
1answer
64 views

Can you use LDAP and PAM to implement a restricted shell?

Can you use LDAP and PAM to implement a restricted shell and control those users via groups on the LDAP DC? I would like to do this for several Red Hat, Solaris and Ubuntu servers? Thanks!
0
votes
1answer
116 views

Execute command in background and get notified when done, with time of execution

How do I make sure I get notified when the job is done? Here is what I'm running: $ time find -exec chmod o-r '{}' \+& I would like to know how long the job took and be notified when it is ...
1
vote
2answers
153 views

“failed to open stream: Too many open files” and garbage collection

Whilst writing some unit tests I hit the upper limit for too many open files (Debian VM) - "failed to open stream: Too many open files" Other than a restart, is there any way to clear this block? ...
2
votes
2answers
642 views

How do I export variables for all users in Linux?

I am using Red Hat. I need to export variables for all users (permanently). How would I go about doing that? I know there is a file for a single user where I can set permanent variables.
4
votes
3answers
400 views

%post section of rpmbuild not working

Situation: I'm trying to build a custom rpm to place a config file in a particular location. The installation completes fine by placing config files in proper directories but the %post section is not ...
2
votes
1answer
67 views

Subversion update

I have a Subversion system running. It always does an post-commit update on /var/www by the following code: /usr/bin/svn update /var/www/. But, this is OK when I am working on an other server. I do a ...
0
votes
2answers
479 views

Locked only user account on Ubuntu 12.04. Can't login

I have an Ubuntu 12.04 server on which I've locked my only account, logged out, and now I cannot log in . jiechao@ubuntu-Jiechao:~$ sudo passwd -l jiechao passwd: password expiry information ...
0
votes
1answer
97 views

How to check which mta / mail program is in use?

Is there a command to tell me what MTA/sendmail a unix system uses? Thanks very much
1
vote
2answers
84 views

Do you keep track of the programs you compile under unix or linux

Do you keep track of the programs you compile and install? If yes, what do you keep, the configure output, the install output? Is there some "best practice" regarding this matter?