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

Monitor changes to a directory tree without root access

I had an incident recently where some files were accidentally deleted. These are files on a shared webhosting account (FreeBSD), but the directory tree is deep. My inclination is to write something ...
1
vote
1answer
938 views

Lists all domains hosted on an IP address

I am looking for a command line way to find all the domains hosted on the same IP address. Is there a way to scan all A records with nslookup? How do Sites like: http://www.yougetsignal.com/tools/web-...
0
votes
1answer
496 views

saving bash shell errors to file

I'm trying to save the errors when I do a chmod to a file. I am running the command: chmod -R 766 * > chmod-errors.txt But that does not work. I also tried chmod -R 766 * | cat > chmod-...
10
votes
4answers
4k views

How to download with wget without following links with parameters

I'm trying to download two sites for inclusion on a CD: http://boinc.berkeley.edu/trac/wiki http://www.boinc-wiki.info The problem I'm having is that these are both wikis. So when downloading with ...
2
votes
4answers
4k views

How to use “find” command with several conditions?

This command will print the *.cpp filenames in the given directory: find . -name "*.cpp" -print How can I print both *.cpp and *.h filenames?
5
votes
9answers
1k views

Remove a file named “.”

I found a file in a directory named "." Not the "." indicating the directory but an actual file with content in it. This, as you can imagine is causing all sorts of problems. The problem is I can't ...
3
votes
3answers
1k views

Is there a tool on Unix, Linux, Mac, Windows, Ubuntu, that will list file / directory structure?

I wonder if there is a tool that will list file / directory (i.e. take a snapshot of the folder and file structure) like the following: audio mp3 song1.mp3 some other song.mp3 audio books ...
0
votes
3answers
2k views

How do I make a simple shortcut on my Mac to go to screen saver mode?

I just want to push 2 buttons at the same time to go to screen saver mode. Is there a setting for that in system preferences where I can set my keyboard shortcuts?
2
votes
3answers
6k views

unix command to see the last run command on command line

what is the command to see the previously executed command that was run on the command line ?
8
votes
4answers
10k views

I just got a Mac! How do I do “end” , “home”, “page up” and “page down” in my terminal/VIM editor?

I write a lot of python in my VIM, on the terminal. What do I do?
6
votes
1answer
15k views

Is there an approved way to clear /var/cups/cache on a Unix system?

My CUPS server has bad, obsolete data in /var/cups/cache. I could just blow away all the files, but I'd like to know if there is a "correct" way to clear the CUPS cache. Man pages and Google have ...
1
vote
1answer
7k views

How to make a Windows 7 USB disk using only Unix commands?

I think I can use newfs_msdos to format it. and dd to copy the contents of the iso to the usb. I can't get it to boot. I've tried to do it before but it didn't work. Has anyone successfully done this?
1
vote
1answer
301 views

SVN Multiple Commands single revision

I want to do something like svn add dir1 dir2; svn ci dir1 dir2 but have it be only 1 revision. Is there a way to do this? P.S. Is this the correct way to add new folders (with contents) to the ...
1
vote
3answers
382 views

Unix console becomes inactive after closing vim

user@laptop:~$ locate file.ext | xargs vim -p Vim: Warning: Input is not from a terminal 2 files to edit user@laptop:~$ After finding files and modifying them in vim I want to save them and ...
0
votes
3answers
1k views

username/password for ftp

I tried to download the rpm for vim from ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/vim/vim-minimal-6.3-1.aix5.1.ppc.rpm . I am using "ftp" command in AIX. when I use, open ...
26
votes
5answers
19k views

Exclude hidden files when searching with Unix/Linux find?

What options do I need to use with find to exclude hidden files?
2
votes
3answers
141 views

Open file without specifying exact location

Say I have a file in some obscure directory that I want to open and edit. I don't want to do something like this... vim ~/foo/bar/blah/doh/ugh.txt I'd rather be able to say find this file and open ...
0
votes
2answers
165 views

How do you copy a class on to UNIX?

How do you copy a class (from intelliJ) on to UNIX (using putty)
1
vote
1answer
191 views

Removing files with strange names [duplicate]

Possible Duplicate: Unix: Files starting with a dash, - Somehow I ended up with a file named "-r". How do I remove it? rm -r doesn't work. I tried 'rm -i `ls -a`' to step through the file ...
3
votes
3answers
2k views

Delete Directories smaller than x

How can I delete Directories which are smaller than, say, 1000 KB? I already have a file list from the command: du -sk * | sort -n > sort.txt but I don't know how to proceed. Update: du -...
68
votes
4answers
109k views

How to make new file permission inherit from the parent directory?

I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to ...
3
votes
2answers
74 views

edit files in unix

I started to work in unix for couple of weeks ago and can very little about unix. Everytime I edit a file, a temp file~ appears in the filesystem. What does this mean? Can I just remove all these ...
3
votes
2answers
208 views

Why does cat not use options the way I expect UNIX programs to use switches?

I have been a UNIX user for more years than I care to think about, and in that time I have been trained to expect that when contradictory switches are given to a program the last one wins. Recently I ...
4
votes
3answers
1k views

Vim: Use different ~/.vim/plugin/ directories for different versions of vim?

Like many of you, my custom Vim configuration is stored in my ~/.vimrc, with the plugins, colors, etc. stored under ~/.vim/plugins, ~/.vim/colors, etc. I want to share a single Vim configuration ...
10
votes
2answers
4k views

Practical tips when transitioning to xmonad?

I like the idea and concept of xmonad, however I still keep going back to gnome after an hour or so. This feels like when I first tried to learn vim, but I've gotten past the learning curve point and ...
23
votes
3answers
14k views

Safely get rid of “You have new mail in /var/mail” on a Mac?

I was messing around with sendmail in Rails a year ago and have had this message popping up in the terminal after every command ever since: You have new mail in /var/mail/Lance How do I properly ...
15
votes
3answers
18k views

what is the max length of password on unix/linux system?

what is the max permissible length of password on unix/linux system?
2
votes
2answers
316 views

How do I check Alpine's version?

How do I check on a Unix server what version of Alpine is installed? I have root access in case that is needed.
2
votes
3answers
2k views

What's difference between this: sudo find /usr/local/mysql/data -type f -exec rm {} ';'

What's difference between this: sudo find /usr/local/mysql/data -type f -exec rm {} ';' and this: sudo rm -rf /usr/local/mysql/data
5
votes
1answer
807 views

Linux/Unix - how to enable one user to `sudo` without a password

How can a user be setup to sudo (or su -) without entering a password?
1
vote
1answer
691 views

Help updating cron entry using regular expressions

hi I am trying to update a cron entry NOT by using crontab -e but by shell commands. For example the cron entry is like this: 10 * * * * /home/localuser/foo.sh -b 1 -h 4 > foo_output.sh 2>&...
3
votes
1answer
5k views

PS Command in Solaris

PS Command output is truncated in Solaris. I tried the below command after g Googling out. It doesn't work. Not sure what needs to be done /usr/ucb/ps awwx
2
votes
1answer
263 views

Permissions issue Mac OS X Client -> Mac OS X Server

I can't get access to a folder on our server and can't understand why. Perhaps someone will see what I'm overlooking... Trouble accessing /Library/Subdirectory/NextDirectory/ User joe can ssh to the ...
0
votes
1answer
504 views

DHCP server inside a virtual machine can't see other machines

I setup a private network from virtual machines and one of the machines is the DHCP server for the group. I want to specify a next-server for the DHCP server but I'm having trouble connecting to any ...
0
votes
1answer
2k views

Mounting an nfs directory in UNIX on a system with two NICs

I'm trying to mount a folder located at 10.0.0.1:/pxe/ on eth1 but I'm not sure how to do this with two NICs enabled. The command mount 10.0.0.1:/pxe/ /mnt/pxe/ works fine when I only am using the ...
2
votes
2answers
1k views

cat on Mac OS X never exits

I'm a bit of a UNIX noob, but I'm trying to run the cat command to make a simple text file and it works great, however cat is never exited after making the file. For instance, I type cat > ~/...
4
votes
2answers
430 views

Mac Terminal.app: Force '^C' to be printed when editing current prompt, then aborting it

This is the opposite of Prevent “^C” from being printed when aborting editing current prompt. I'm using Bash. When I'm editing the commandline in Bash, and I hit Control-C to abort the commandline, ...
5
votes
3answers
6k views

Using find and tar with files with special characters in the name

I want to archive all .ctl files in a folder, recursively. tar -cf ctlfiles.tar `find /home/db -name "*.ctl" -print` The error message : tar: Removing leading `/' from member names tar: /home/db/...
37
votes
6answers
28k views

On Linux/Unix, does .tar.gz versus .zip matter?

Cross-platform programs are sometimes distributed as .tar.gz for the Unix version and .zip for the Windows version. This makes sense when the contents of each must be different. If, however, the ...
2
votes
3answers
1k views

How can I tell when an FTP is complete?

I have a cron job that processes files that my client's upload via FTP to my FreeBSD server. The cron job runs once an hour, and normally processing each file only takes a few seconds. The cron job ...
3
votes
4answers
954 views

What percentage of computers today are *nix based? [closed]

Do you know some source that has statistics/estimations about this? Any sound guesses?
8
votes
3answers
34k views

Howto unzip “.xz” file with 7z and lzma

I tried to uncompressed a "*.xz" file with both 7z and lzma. But they gave me such message: $ 7z x myfile.fq.xz 7-Zip 4.57 Copyright (c) 1999-2007 Igor Pavlov 2007-12-06 p7zip Version 4.57 (...
0
votes
1answer
1k views

What is the max hostname length on Solaris 8/10? And can it be expanded?

I found getconf HOST_NAME_MAX to return 255 on my Sol 10 box, so I'm assuming that that is the max length of a hostname in Solaris 10. Can this be expanded? What about for ipv6?
7
votes
1answer
15k views

Redirect input from one terminal to another

I have sshed into a linux box and I'm using dvtm and bash (although I have also tried this with Gnu screen and bash). I have two terminals, current /dev/pts/29 and /dev/pts/130. I want to redirect ...
14
votes
3answers
15k views

UNIX - mount: only root can do that

I need to allow a non-root user to mount/unmount a device. I am a total noob when it comes to UNIX, so please dumb it down for me. I've been looking all over teh interwebz to find an answer and it ...
2
votes
2answers
17k views

How to create a cron job to upload files to an FTP server

I would like to create a cron job that uploads files from a directory on my computer to my FTP server. I would like it to do it daily at midnight. I know pretty much nothing about cron, so I ...
16
votes
2answers
5k views

What happens to running processes when I lose a remote connection to a *nix box?

I occasionally lose my remote SSH connection to my VPS. I use screen for long-running processes, but am wondering what happens to the processes I had running aside from those run within a screen ...
8
votes
4answers
18k views

Unix 'grep' for a string within all gzip files in all subdirectories

How do I grep for a string recursively through all .gz files in all directories and subdirectories?
3
votes
3answers
507 views

What exactly is there in the /etc/passwd file?

Well we all know that it holds passwords. But cat-ing it gives out nothing. Not even encrypted gibberish. So how exactly is a password stored in this? Is this like a device file or something?
23
votes
13answers
8k views

Non-Windows, non-Unix-like OS's?

Since most operating systems I've heard of besides Windows seem to derive their heritage from Unix, I've been curious whether any OS's with the following characteristics exist: Not generally ...