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

15
votes
1answer
14k views

How do file permissions apply to symlinks?

Let's say you have this structure: + directory -- file1 -- file2 -- file3 -> /tmp/file3 file3 is a link to another file3 somewhere else on the system. Now let's say I chmod 777 the directory ...
2
votes
3answers
453 views

Unix Directory Hierarchy Permissions

Suppose I have a directory with no access for anyone except for root. Am I guaranteed that everything in the directory is inaccessible to everyone but root? In other words, are file permissions ...
0
votes
4answers
204 views

Is there a text editor I can use on my Mac that can “ssh-sync” with my files on my remote server?

Every time I save a file on my Mac, I want it to auto-sync with the files on my remote server. Are there any text editors that can do this?
3
votes
1answer
1k views

Launchd execute command when folder contents modified or changed

For the past two days i've been trying to get a launchd plist to execute a script "program" when the contents of a folder on my desktop contents have modified or changed. I've gone through tons of ...
3
votes
1answer
509 views

When does rm remove open files?

Particularly, I want to know what happens when I rm an open file and don't explicitly kill the process holding the file descriptor to that file. Will the file be removed when the system is shut down?
4
votes
1answer
6k views

zip selected directories recursively in linux

I would like to zip only selected directories(and its child directories as well) I have many directories in the current folder like app, content, db, library etc. But I would like the zip only app ...
1
vote
3answers
217 views

Unix hostid and Windows

Is there a Windows equivalent to the unix hostid? http://linux.about.com/library/cmd/blcmdl1_hostid.htm
0
votes
0answers
92 views

Overlapping lines in AIX 5.3

When I type commands and hit enter my cursor line for some reason appears on the the second line from the end of the output: tomcat [server] /home/tomcat: ls -l total 24 -rwxr-x--- 1 tomcat dev ...
4
votes
1answer
2k views

How can I configure Mutt to work properly in Cygwin?

Every time I try to run Mutt in cygwin I get the following errors: Error in /home/JJR/.muttrc, line 4: smtp_url: unknown variable Error in /home/JJR/.muttrc, line 5: smtp_pass: unknown variable ...
0
votes
4answers
363 views

OSX Terminal Search Directories

I come from using cygwin on Windows, and I just started using a mac. I'm wondering why it seems that search paths don't work like they should. If I have a program in /usr/bin/prog and I delete it. It ...
4
votes
2answers
268 views

Unix/Linux program that can handle all popular compression/archiving formats (e.g.tar, gzip, bzip2, zip)?

I sometimes get confused by the varying command line options I need to run common Unix archiving and compression software (e.g. gzip, bzip2, zip, tar). Is there a program out there that can just Do ...
8
votes
5answers
11k views

sudo chmod -R 777 /

sudo chmod -R 777 / I did this. It was a mistake. Is there any way to undo it? Basically it's messed up more things than I can list. I don't have time-machine enabled on my mac.
3
votes
2answers
4k views

If I use SSH with public keys, is it subject to the password expiration of my user account?

So if I'm using SSH with public/private keys to connect to a Unix box, and the password for my user account on that box expires, will I still be able to connect?
10
votes
5answers
5k views

What is a “pipe” and how can it be “broken”?

I've gotten the "broken pipe" error from Xcode one time too many. I'm now curious to know exactly what a pipe is. What is the concept of a "pipe" and how can it be "broken"?
1
vote
2answers
148 views

How \ why does echo $'\ec' work? What is it doing to clear the terminal?

On the terminal prompt for OS X I can type in echo $'\ec' and ti will clear the console. I have no idea why this works, though. What is it doing? I'm guessing this would work on other versions of ...
0
votes
3answers
199 views

Make a backup from unix box

Need some kind of software (Debian) to create backups. Generally have few folders, with ~10k files, total zip size ~5Gb. Want create 7 backups max. i.e. - delete oldest one every day. i.e. need ...
2
votes
1answer
112 views

Find symlink when 'find' hasn't worked

So I have a few utility scripts in my ~/scripts folder. They are all bash scripts, nothing amazing about that. One is named sfind.sh, the other is svn-add-all.sh. At some point, I created symlinks to ...
1
vote
2answers
396 views

Unix, find command, and false negative

Performing a search from the current directory where this file resides, this find command finds the file. # find . page.tpl.php However, when I search from a child directory, this command, # find ...
3
votes
3answers
203 views

Where to put libraries and headers on windows (coming from unix?)

When a unix/linux program requires "stuff", I usually put (or dpkg puts for me) libraries and headers in /usr/lib and /usr/include, respectively. I recently downloaded a library that I wish to use on ...
142
votes
8answers
8k views

What do the parentheses and number after a Unix command or C function mean?

I keep seeing parentheses and a number after a command in Unix or Linux or C function. For example: man(8), ftok(2), mount(8), etc. What do these mean? I see them in man too.
3
votes
2answers
379 views

Running a bash program every day at the same time

I've written a program using the bash shell that I want to use to wake myself up in the morning (pulls up the weather, plays some music, etc.). How do I make my Mac OSX run the program every day at ...
1
vote
1answer
2k views

Unix command fuser not found

I am on SunOS 5.10. When I am trying to use the command fuser, I am getting an error that it's not found. /home/user$fuser file.dat ksh: fuser: not found But I am able to get the man page entry ...
1
vote
2answers
1k views

What is rwfs filesystem?

I did a df on my embedded device and saw that the one of the filesystems mentioned was rwfs. What is rwfs ? df Filesystem 1k-blocks Used Available Use% Mounted on rwfs ...
10
votes
5answers
8k views

Store the output of date and watch command to a file

I am a newbie to linux and I am trying to watch a command and try to log it into a file. I tried watch -t -n 10 "(date '+TIME:%H:%M:%S' ; ps aux | grep "pattern" | wc -l)" >> logfile and am ...
1
vote
2answers
6k views

Unix Command to Download from URL to Directory

Is there a unix command I can use to pull a file from a URL and put it into a directory of my choice? So I have a URL which if you go to it, a file will be downloaded. I want to be able to type a ...
2
votes
4answers
269 views

How to see the login event programmatically?

I want to find programmatically from a log file that user logs in to a Debian machine. I also want to see who logs in and what ever is logged to the file on that time. How to accomplish that task on ...
3
votes
2answers
3k views

Difference between unix and linux commands [closed]

I just bought the book UNIX in a Nutshell for really cheap even though I spend most of my time in some form of Linux. The first half of the book is commands and shell syntax. About how much of that is ...
1
vote
2answers
160 views

Use sed to modify and execute previous command

I've got a bunch of pdf files that are joined with a very long command line sitting in a directory. Some are in English and some are in French, differentiated by _e.pdf and _f.pdf. Because they're ...
4
votes
2answers
596 views

How can I keep reading from a pipe even after the pipe is closed?

I've got a ksh script that calls: while read LINE do... The input has been redirected (not shown) so that it reads input from a pipe. The problem is that when the writer to the pipe closes, read ...
0
votes
2answers
150 views

Alternate wine install needs deletion

I'm running into a strange issue where I have two working wine installs. This one is stumping me. I'm using Centos version 5.6. The legacy wine was installed via rpm or yum; I'm not sure which. yum ...
0
votes
1answer
882 views

Unix ls files within a certain time range

I'm trying to find files that have dates within a specific time range (like the last 2 months). How do I go about doing that?
2
votes
1answer
217 views

TCP/IP for windows and unix

Are the protocol implementations in TCP/IP same for all platforms or is there a specific requirement for each platform? I have this question when I read Windows and UNIX use different functions to ...
7
votes
4answers
4k views

Windows PowerShell equivalent to Unix/Linux `pwd`?

In follow-up to the cmd.exe question, what is the PowerShell equivalent to echo %cd%, or Linux/Unix pwd?
2
votes
1answer
389 views

Easy way to columnize STDOUT (format text in columns)?

I just want an easy way to columnize output to the terminal. Don't care about colors. (Well, actually I do quite a bit! But there is the awesome, easy-to-use ANSI Color for that.) Shell scripts ...
35
votes
12answers
44k views

Unix/Linux find and sort by date modified

How can I do a simple find which would order the results by most recently modified? Here is the current find I am using (I am doing a shell escape in PHP, so that is the reasoning for the variables): ...
1
vote
2answers
352 views

OS X (Unix, Linux): Find files with a space in the name, copy and rename them, and move them to a separate folder

Google Music Beta won't upload mp3's with spaces in the actual filename. I would like a script that will find all the ones that have a space in the filename and copy them, rename them (just remove the ...
3
votes
2answers
148 views

I have a load of ports i dont know what they do are open on my server

i ran this command netstat -apne --inet and apart from smtp, https, http, i had these ports open tcp 0 0 xx.xx.xx.xx:48641 yyy.yyy.yyy.yyy:80 TIME_WAIT 0 ...
1
vote
3answers
198 views

Does specification mean interface?

I was wondering Generally, does specification mean interface, regardless the implementation beneath the interface? Specifically Only systems fully compliant with and certified according to ...
1
vote
1answer
119 views

How to I get this specific unix shell?

I'm used to using the unix shell where when I write the beginning of a command (say ca) and hit the up arrow, I will only get commands in history that begin with "ca". In my current shell (brand new ...
1
vote
3answers
2k views

Need Open Source Video Editor for Mac OS X

I'm looking for a good free (as in freedom + beer) video editor for OS X. It needs to be: intuitive / easy to use, non-linear, and able to work with .avi files. Basically, we have a couple of ...
8
votes
3answers
8k views

How to copy a file without using scp inside an ssh session?

I have logged on to a system with ssh and there is no scp present on both the systems. How to copy a file without using the scp program.
2
votes
2answers
415 views

non-destructive piping in vim?

Is there a way to pipe selected text through an external command in vim, but not to replace the selected text with the output? Occasionally I want to copy something in a vim buffer to the X clipboard, ...
0
votes
1answer
194 views

Can I set a unique date/time for a single user in Ubuntu?

Is there a way to give different users unique system date/times in Ubuntu? For example, if I wanted the date to always be June 22nd for user Bob (because that's his birthday) but still have the ...
0
votes
1answer
399 views

How do I tell which version of a framework (cocos2d) I have installed?

How do I tell what version of a framework (cocos2d) I have installed? I have some version of cocos2d installed but I can not figure out which one. I've tried commands like cocos2d -v But they are not ...
0
votes
2answers
111 views

what do I need to do on a unix machine to allow some PC computer to mount (NFS)

I have a unix computer and a PC computer. I want to mount a drive in the PC onto a unix directory. What do I need to do in the unix side to allow this? Thank you!
0
votes
1answer
2k views

How to debug ld.so.1: fatal: relocation error:?

Ive been messing around on a Solaris box, installing precompiled lib/programs from the repos by extracting them and placing them in my home dir. It seems everything ive tried sofar works, except for ...
3
votes
2answers
701 views

Compiling and installing programs as non-root in home-dir?

I'm trying to compile programs under Solaris in my Home directory. Ive had experience with simple installs which work with just $> CD src $> ./configure --prefix=/home/peter $> make ...
4
votes
2answers
3k views

SunOS tar filename is greater than 100

On a Solaris when creating a tar archive using the cf options: tar cf file.tar dir and when many nested directories generates very long path names, I get the error: tar: filename: filename is ...
11
votes
3answers
3k views

Making Linux shell prompt show last return value

I'm currently on a Linux machine and the shell prompt is showing me the last return value and number of executed commands (picture included, with these numbers shown in purple). My own computer ...
7
votes
3answers
28k views

Copy Folders from one Unix server to another?

I would like to copy a folder from one Unix server to another Unix server. Can anyone tell me if there is a method or command to to achieve this?