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
1answer
914 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 ...
1
vote
2answers
195 views

Unicode versions of common UNIX text tools to run on Windows

I can't afford the MKS toolkit (also think its a bit overkill for my needs). So I was wondering is anyone knew of the standard set of unix text tools but that can handle unicode files under Windows. ...
1
vote
1answer
1k views

shell / ssh / tty session logger

Good day to you. I know there's some variations of my question here, but they are a bit different I assure you. We use terminal servers that our admins connect to and then establish ssh ...
0
votes
2answers
165 views

diff script command to mail

Is there a way to add a command to mail this if it finds any changes in the /newchanes.list. mail with an attachment(/changes) saying it found changes and if not then the subject line would say: no ...
1
vote
5answers
201 views

Best way to manage $PATH varibles?

I looking for a way to easier manage my $PATH variables. executing $PATH returns me: ...
1
vote
1answer
609 views

Cannot SVN checkout when anon-access = none

When I have anon-access = write Everything works fine. When I change svnserve.conf to: anon-access = none auth-access = write And uncomment password-db and authz-db AND add user in authz with rw ...
1
vote
2answers
657 views

how to recover a .c file in AIX unix which has removed (rm -f) by accidentally

how to recover a .c file in AIX unix which has removed (rm -f) by accidentally
2
votes
4answers
329 views

How to figure out what Linux/Unix distro you are on

Is there a way to tell which Linux flavor and version on the machine I am on running? This may be a strange question, but if I'm given a machine and connect to the monitor and the keyboard and if the ...
1
vote
1answer
532 views

number of characters per line printed by lpr

How do I set the number of characters per line when printing a file using lp or lpr? It seems like it's fixed at 80.
3
votes
1answer
542 views

Can i call pushd/popd and prevent it printing the stack?

After calling pushd/popd in bash, it will print off the current directory stack. Is there any way to prevent this behaviour, so that it will act 'quitely'? This sort of noise in a command is uncommon ...
12
votes
6answers
7k views

Git - post-receive hook with git pull “Failed to find a valid git directory”

It's very weird but when setting a git repository and creating a post-receive hook with: echo "--initializing hook--" cd ~/websites/testing echo "--prepare update--" git pull echo "--update ...
1
vote
2answers
317 views

Is it a good idea to chmod my Python site-packages directory to 777?

I use Python on Linux and OS X, and I'm trying to think of a good reason not to chmod my Python site-packages directory to 777. It seems like that is better to do than sudoing every time I want to ...
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 ...
1
vote
4answers
936 views

Create file with variable value in Unix

How can I create a file in unix or linux based on variable value ? Ex: If I store date in a variable in linux, YESTERDAY=`date --date='1 day ago' '+%d-%m-%Y'` it will store value to YESTERDAY as ...
2
votes
1answer
529 views

snmpwalk: Supressing the “Wrong Type (should be xxx)” when loading a custom mib

I'm using some custom mibs but for some items I get a message like: $ snmpwalk -c enterprise -v 1 -M mib -m ALL host iso.3.6.1.4.1.5485.2.10.111.1.1 ... MYCOMPANY-MIB::rejectedMessages.11 = Wrong ...
0
votes
1answer
322 views

Determine group of unreadable unix/linux directory

dcoles1@shovel:/ $ cd /DriveXT dcoles1@shovel:/DriveXT $ ls . unreadable dcoles1@shovel:/DriveXT $ cd /DriveXT/MML/ dcoles1@shovel:/DriveXT/MML $ ls . unreadable dcoles1@shovel:/DriveXT/MML $ ...
1
vote
4answers
1k views

Make ls print it all on one line (like in terminal)

ls prints differently depending on whether the output is to a terminal or to something else. e.g.: $ ls . file1 file2 $ ls . | head file1 file2 Is there some way to make ls print out on one line ...
15
votes
5answers
5k views

Bash Loop - How to stop the loop when I press Control-C inside a command?

I am rsyncing a few directories. I have a bash terminal open and am executing something like this: for DIR in * ; do rsync -a $DIR example.com:somewhere/ ; done However if I want to stop the whole ...
6
votes
4answers
3k 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)?
11
votes
1answer
7k views

rsync - Exclude files that are over a certain size?

I am doing a backup of my desktop to a remote machine. I'm basically doing rsync -a ~ example.com:backup/ However there are loads of large files, e.g. wikipedia dumps etc. Most of the files I care a ...
2
votes
6answers
375 views

Last command issued on a GNU/Linux box

Someone asked at the mailing list of my local LUG if there is any way of learning the last command issued on a GNU/Linux system. We're talking last command in a system-wide fashion I guess. After ...
0
votes
1answer
818 views

Why can't I successfully install mysql server?

It's very easy. All I want to do is this: aptitude remove mysql-server mysql-server-5.0 --purge aptitude install mysql-server But when I try to run that I get this error: root@db2:/etc# aptitude ...
2
votes
2answers
583 views

A more useful MySQL Query log that's suitable for tail -f'ing

In order to debug a webapp and mysql queries, I've enabled the mysql query log. However it's not a very good format to tail and grep through. Ideally I'd like to be able to only show queries from a ...
4
votes
3answers
1k views

xargs --max-proc split output per proc?

I recently discovered the xargs --max-procs feature. How can split the output of the command by proc? Should I just create a mycommand --logfile $LOGFILE, or can I do it from xargs itself? An ...
0
votes
1answer
216 views

Does smbfs create constant inode numbers?

If I use smbfs to mount a filesystem, will the inodes always be the same for each file? Or am I in danger of the inodes changing when I mount the fs again or if the remote system reboots?
0
votes
1answer
393 views

How to “distribute” memcached?

I know how to install and use memcached on one server. But I heard you can "distribute it"? How does that work, and how can I enable that feature?
5
votes
2answers
327 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 ...
4
votes
6answers
446 views

Is it a good idea to encrypt files in unix?

There are (pdf) files placed under unix with 700 permission. The files contain sensitive data. Would it be a good idea to also encrypt these files? Would it make them any more secure?
2
votes
2answers
639 views

make noise on redhat when command is finished

i am developing some software with a significant build time, so i want to execute the build command and play a noise once it is finished. two questions: how do i make some noise from the command ...
0
votes
1answer
977 views

Get all files using FTP via Unix Terminal

Using the FTP command in the Unix terminal I want to download all files / folders from my FTP server. When I use this command: ftp> mget * I get lots of these errors: ftp: Unable to determine ...
3
votes
5answers
220 views

How do I keep track of all IPs that logs into my UNIX computer?

I am using Ubuntu. Is there a good system that can do this?
8
votes
2answers
2k views

unix user alias

is there a way to set up user aliases in unix such that if you have a user, my_user, they can log in with an alternate username, i.e. my_user_alternate and still be logged in as my_user?
1
vote
2answers
194 views

Selective syncronisation of two directories in UNIX (Solaris)

I'm wondering if anyone knows of a nice way to partially duplicate (hard link) files between two directory structures? My current fall back is a script invoked by cron. As background: I ask since I ...
1
vote
2answers
697 views

CRON job erratic behavior with Bourne shell script

I have the following script, that runs normally when I type the script name at the prompt (logscript): #!/bin/sh dvar=`date +"%m\/%d\/%y"` filedate=`date +%b%d%Y` echo DSS1 > ...
0
votes
2answers
525 views

Bash & blocking processes

Could you help me with the Bash syntax to achieve the following? Run a blocking process without blocking execution of the rest of the script. Run a standard "non-blocking" process (e.g. lsof). ...
1
vote
2answers
2k views

Updating a file in a zip archive from STDIN

I want to update/freshen a file in a zip archive with the contents of stdin. So far I haven't been able to find a way to tell the zip command that the contents of stdin correspond to a particular ...
0
votes
2answers
2k views

SSH not redirecting stdout to local terminal

I have the following relevant lines in a csh script: #!/bin/csh -xv set dvar = `date +"^%m\/%d\/%y"` set filedate = `date +%b%d%Y` set grepstring = "grep "\"$dvar\"" </home/user/log/logfile" set ...
1
vote
3answers
920 views

Problem with Postfix

I have Postfix installed and Sendmail is not running. I try to send mail using mail but the following warning comes up and the mail doesn't get sent: postdrop: warning: unable to look up ...
-1
votes
5answers
9k views

Best IRC Server & Services? (Debian) [closed]

Using Debian (Lenny) here all update to date and such and I'm looking to setup an IRC server (I've done it before) Just wondering whats the easiest to setup. I'm looking for something thats also ...
1
vote
2answers
260 views

Sync server time

I have 3 servers and each one of them is showing different time. How do I correctly set the SAME time across all severs? I noticed that ntpd server is stopped. So I started it. service ntpd start Is ...
6
votes
7answers
391 views

*nix measure memory usage

i'd like to measure the total memory (like RAM) used by a program during its execution. Ideally, something like time that runs the program and print stats when it exits. Is there such a standard tool ...
0
votes
4answers
3k views

useradd with 755 permissions

I d like to set the home directories permissions as 755 when i add the user via useradd. How can i do this? Thanks.
3
votes
2answers
105 views

Access rights escalation requiring multiple sysadmin authorisation

I was just wondering if there is a way to give a user root access escalation on a *nix system, kind of like sudo, but which requires more than one sysadmin authorisation. I am thinking of something ...
0
votes
2answers
519 views

Why can't I uninstall mysql completely? look! it's still there

root@db2:/var/log/mysql# aptitude remove mysql-server --purge Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing ...
0
votes
2answers
116 views

Should the Tomcat standalone http server be stopped after you've setup the apache http server?

I'm going to set up my linux server (ubuntu) with Apache and Tomcat. I've seen the documentation about setting up the tomcat connector for apache, but the thing I don't understand is that shouldn't ...
0
votes
4answers
460 views

Troubleshooting httpd in Linux

I have a small personal site hosted on Unix (using a common hosting account). My experience with Unix is limited (too bad). Recently I set up a httpd server running on port 8082 (not Apache - but an ...
1
vote
2answers
844 views

SSH certificate authentication for the user without home directory

I have access to Solaris box over ssh and can login with username and password. I want to write a script which would copy files from that box unattended (scp/sftp from cron). Usually in such case I ...
1
vote
2answers
112 views

How to get a man page for manually compiled software?

I'm using Mac OS X and I manually compiled llvm and clang because they were not available from MacPorts (a package manager). I presume clang has some kind of man page. How do I install and/or ...
5
votes
2answers
3k 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 ...
0
votes
1answer
78 views

Monitoring User Account Time

Is there a good way (on networked *nix systems) to keep track of how much time user accounts have been logged in on a daily/weekly/monthly basis? Also, it would be cool if I could set adjustable time ...