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

5
votes
5answers
223 views

How to find all filenames with given extension

I need to find all .pem files on my system. Would the following do this? sudo find / -type f -name *.pem If not, how would I write a find command to find every file of the sort?
5
votes
2answers
389 views

what console command ./ means?

I saw many times console commands like ./redis-server or ./mongo what exactly ./ means?
5
votes
4answers
16k views

How can I manually run a nagios check from the command line?

When defining and testing new services in nagios I have been restarting nagios, then clicking the service, and rescheduling a check for as soon as possible, then waiting until the check happens. Is ...
5
votes
6answers
450 views

Source vs Package Managers on the job

I am a bit confused, as there are two ways to install applications. One being to configure and make from source and the other from a package manager. If one were a UNIX/Linux administrator, is it ...
5
votes
6answers
364 views

Does Windows have symlinks?

I have been doing something on Unix that required a symlink. I want to port my application to Windows. Does Windows have symlinks? EDIT: I should be more specific. I'd prefer XP. I'll install Vista ...
5
votes
3answers
2k views

Directory that a user can read, but root can't?

There's a directory underneath my homedir called ".gvfs". As my regular user account, I can read it just fine: ~ $ ls -lart ~raldi/.gvfs total 4 dr-x------ 2 raldi raldi 0 2009-05-25 22:17 . ...
5
votes
5answers
9k views

Where is the sudoers file on Solaris?

Where is the sudoers file in Solaris? Is it different between Solaris versions (specifically, 9 and 10)?
5
votes
6answers
4k views

Monitor the shell activity of a user on your Unix system?

Trust, but verify. Let's say I want to hire someone a sysadmin, and give them root access to my Unix system. I want to disable X windows for them, only allow shell usage (through SSH, maybe), so that ...
5
votes
2answers
2k views

should use sudo or just su root in server management?

Which approach is better? For desktop usage, it seems that sudo is better since: I can have a more consistent history as a normal user Don't need to remember two passwords, which is especially ...
5
votes
7answers
6k views

Should I use a login banner and if so, what should it say?

Are interactive login banners worth having? The general consensus is that they are, but what should the banner say? Some things that are being considered (no particular order): ownership of the ...
5
votes
3answers
1k views

What equivalent technologies to Microsoft's forthcoming ReFS exist for Linux/Unix?

With the announcement and write-up of ReFS (Resilient File System) on places like arstechnica, I am curious to know what technology, or technology stack, exists for Linux/Unix for a similar outcome. ...
5
votes
3answers
9k views

.nfsXXXX files appearing, what are those?

We have an application running (on RHEL5), streaming data onto an NFS share. Recently we saw a lot of .nfsXXXX... (xxx being a hexadecimal number) appearing in its working directory, where the ...
5
votes
7answers
7k views

Unix shell: easy way to get IP from hostname

What is the easiest way to get the IP from a hostname? I was thinking about trying a ping and parse it from the output. However, that doesn't seem very nice and will probably not work the same way on ...
5
votes
4answers
858 views

Log monitoring toolsets for Unix? [closed]

What are some good tools for monitoring logs on a system? I am currently using logsentry, which basically just runs grep on logs, ignores regexps I tell it to ignore, and mails me everything else, but ...
5
votes
4answers
3k views

How to add a user without knowing the encrypted form of the password?

I use the following command to create a user in a linux machine: useradd -d /home/dummy -g idiots -m -p 12345689 dummy The user is created and the home directory as well. The problem is that I ...
5
votes
3answers
309 views

Is SPF enough to make sure emails get delivered to inbox?

So I just succesfully set up postfix + dovecot. is SPF enough to make sure emails get delivered to my website's users? I don't want my emails to end up in their spam box.
5
votes
4answers
10k views

How do you install ClearCase 7.1 on a Unix-based server with no GUI and no internet?

The challenges set by the ClearCase 7.1 installation process are multiple: The installation for Unix has been changed (no more './install_server' script): a unified GUI-based Java tool is used, both ...
5
votes
2answers
783 views

What is the purpose of each of the different UNIX/Linux shell startup files?

Previously, when setting up a *NIX environment for the first time, I would put all of my shell customisations into .bashrc, with the following .bash_profile: if [ -f $HOME/.bashrc ]; then . ...
5
votes
4answers
2k views

How big (in bits) is a Unix UID?

I understand that unix user IDs (UIDs) are usually 16 or 32 bit unsigned integers but how can I find out for any given system (in a shell)?
5
votes
6answers
315 views

Web Designer Permissions on a Production Web Server

Just started working with a small group of front-end web developers who all login to the dedicated WHM/Apache production server with root to modify client web sites. They claim they do not want to ...
5
votes
3answers
746 views

long SSH password vs SSH Keys

Using amazon's EC2 Service, which is awesome in every regard. Only problem is, I have problems logging in with the SSH keys they automatically genarate. I have no idea what the problem is, but have ...
5
votes
5answers
2k views

What's the best way of setting up a cron job to check that a long-running process is still going and if not, start it?

As per the title: What's the best way of setting up a cron job to check that a long-running process is still going and if not, start it? If I start a long-running process in cron, is it going to ...
5
votes
2answers
2k views

Create Unix Named Socket from the Command Line

Is there a command similar to mkfifo but for domain sockets?
5
votes
6answers
1k views

(*nix) Cloud/cluster solutions for scalable web-services

I'm going to build a high-performance web service. It should use a database (or any other storage system), some processing language (either scripting or not), and a web-server daemon. The system ...
5
votes
3answers
117 views

Returning A List Of Quoted Files Paths Using Find

I would like to create a tarball that contains files from a directory that have a ctime of less than 30 days. Most tutorials I have found have basically recommended doing something like this: tar cvf ...
5
votes
3answers
162 views

Sort Active Processes in Unix

How can i sort active processes by total process time in unix?
5
votes
2answers
9k views

UNIX - How to give user rights over another user and so I don't need to sudo or type password?

I have 2 users in question • git user - used for gitosis - so it's a No password user and it can be accessed only through root... • user user - where my files reside so what I would like to do is ...
5
votes
10answers
16k views

Recursive move utility on Unix?

Sometimes I have two trees that used to have the same content, but have grown out of sync (because I moved disks around or whatever). A good example is a tree where I mirror upstream packages from ...
5
votes
10answers
1k views

How to migrate a web site from one server to another with minimal downtime?

I have a server hosting a web site and other services that needs to be reinstalled. I would like to relocate these services to another server temporarily, with as little downtime as possible. Both ...
5
votes
1answer
1k views

Does directory mtime always change when a new file is created inside?

Is it always true that when a new file is created in a directory - the directory's mtime changes?
5
votes
3answers
1k views

Unix/Linux simple log parser (since, until)

Has anyone ever used/created a simple unix/linux log parser that can parse logs like the following: timestamp log_message \n Order the messages, parse the timestamp, and return: All messages ...
5
votes
4answers
2k views

TCP monitoring on a server: comparing netstat vs lsof?

I'm monitoring the TCP stack on a server hoping to generically infer problems with application on the box. My first inclination is to measure the number of sockets in all reported states ...
5
votes
2answers
1k views

Right aligning text in GNU Screen caption or hardstatusline

I have this in my .screenrc caption always "%{= Kw} [%0c] %-Lw%{= KW}[%50>%n%f* %t]%{= Kw}%+Lw%=| %l | ${FULLHOST}" It normally displays something like this: [01:06] 0$ vim 1$ top 2-$ tail ...
5
votes
3answers
310 views

Can I create and manipulate unix “screens” in a script?

I have a work environment on my Ubuntu laptop in which I want to use three different screens. Eg. in terminal, I usually write screen -S mywork run_server_1 then, ctrl-a c to create a second ...
5
votes
3answers
165 views

How to stay up to date with the latest information about UNIX software patches and upgrades?

Until now I have always used the SecurityFocus mailing lists to keep myself informed about the possible need of upgrading my server packages. The main problems I have with using this method: Massive ...
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 ...
5
votes
1answer
389 views

What's the point of using runit in combination with monit?

I see a lot of people using monit in combination with runit. Isn't that redundant? What is the point of using runit as well? Is it because it's more reliable when dealing with services (as it doesn't ...
5
votes
3answers
437 views

Does anyone know a simple way to monitor root process spawn

I want to exec a script when a new root process spawns. (on Linux) How can I simply do that ? Thanks
5
votes
2answers
780 views

Monolithic vs Micro kernel

What are the differences between a monolithic kernel and a microkernel with respect to structure and security. My friend told me that Linux systems have monolithic kernel and thus are not easier to ...
5
votes
3answers
1k views

How to whois microsoft.com from command-line?

If you 'whois microsoft.com', you get a whole bunch of listings from pranksters who thought it would be funny to mess with the listings by putting 'microsoft.com' in their subdomains. The output ...
5
votes
1answer
907 views

Acessing a mercurial repository on a shared host over SSH

I have a shared hosting account with SSH access. I have set up a virtual Python installation and have copies of the system folders in $HOME: ~/bin, ~/lib ... I have installed mercurial through ...
5
votes
2answers
325 views

Please explain the following o/p of “top” command

Please explain the following line from the "top" command in the bold :- Mem: 1026228k total, 449640k used, 576588k free, 44812k buffers Swap: 1052248k total, 2020k used, 1050228k ...
5
votes
1answer
290 views

Anacron and fcron, what are the differences?

Anacron is a computer program that performs periodic command scheduling which is traditionally done by cron, but without assuming that the system is running continuously. fcron is another ...
5
votes
1answer
149 views

Crazy idea: Identify if system is idle when it's a black box

I need to be able to tell if a series of servers have anyone active on them, and if not then to automatically shut them down (turn off the VM). It's not a trivial task, because I have 1000+ server ...
5
votes
5answers
2k views

iptables vs. hardware firewall

I was wondering if anyone could speak to the advantages of a hardware-based firewall vs using iptables directly on a web server. I'm evaluating the cost effectiveness of having a dedicated firewall ...
5
votes
1answer
4k views

How do I set 'max threads per process' ulimit for non-root user?

Ulimit man page suggests -r option will set this but it only appears to be valid for the root user and there is no equivalent for setting it via /etc/security/limits? Any ideas?
5
votes
3answers
261 views

What will prevent a reboot?

I've got a Mac fileserver that isn't acting right (and was acting strangely yesterday as well). I set up an audible ping to it, and sshed into it and, as root, issued the reboot command. It did ...
5
votes
2answers
126 views

Trying to delete a directory stored on a Windows server, from on a Mac, containing files created on the Mac, getting “Directory not empty”

I am trying to delete a directory stored on a Windows 2008 R2 server, mounted on a Mac as network home (10.8.5). The directory was created by Safari and stores temporary internet files. I need to be ...
5
votes
5answers
2k views

Groups and Permissions: Nested UNIX groups

We are getting more and more outside developers (from different clients) and are beginning to need a better strategy than adhoc adding to our server and adding to them ourcompany group (which owns ...