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

4
votes
1answer
624 views

Trying to create an ISO of my bootable USB using the unix command: dd

i'm trying to create a (bootable) ISO (which i'll then burn to dvd) from the source being an bootable USB disk (it contains windows 7 and i've installed a number of PC's from it already). So i'm ...
2
votes
3answers
10k views

How to copy a file from unix to windows machine, from commandline

How to copy a file from unix machine to windows machine, from commandline.
2
votes
1answer
3k views

After setting ulimit to unlimited, I am not able to login to machine

In one of requirment, I had to set ulimit on one of my machine to unlimited. For this I changed following in /etc/security/limits.conf as below # End of file oracle soft nofile unlimited ...
1
vote
1answer
559 views

How to remove files that start with a number and don't end with a letter?

I am doing some practice question off a text book and I ran into one thing that I cannot seem to solve. It wants us to remove all files that start with a number and end is not a letter So I use ...
19
votes
2answers
13k views

Counting total number of matches with grep instead of just how many lines match

Does grep offer a way to count the total number of matches it makes? The -c option only returns the number of lines that matched the regex, but in this case I have multiple matches per line.
1
vote
1answer
30 views

Saving compilation options

Suppose a library have been configured and compiled into /opt/name/ by root. Is there a way for me to see the options passed to ./configure when the program was first compiled and installed (short of ...
1
vote
1answer
115 views

How can I configure PuTTY to ignore right-click events?

I'm trying to configure portable PuTTY to access an Accu COBOL application. The problem is that the right mouse button click causes an unexpected character entry in the application for careless ...
0
votes
2answers
1k views

Copy from Unix to Desktop without using any third party tool

I want to copy my DBServer (LINUX) to Desktop . i can access the same from putty. but i dont want to use a third party tool. Is there any Command in Unix or linux to copy a file direct from Linux to ...
2
votes
1answer
2k views

Running a script on rtorrent completion

How can I make rtorrent run a script when it's finished downloading a torrent, with the full path to the torrent's folder as a parameter?
0
votes
1answer
657 views

Installing Python on cygwin

How do I install Python on cygwin? I downloaded the Python-2.7.2.tar and uncompressed it. What do I do with it now? I tried running install-sh but it says no input file specified
0
votes
1answer
949 views

What is Solaris top command “SIZE” column?

I have a node.js process running on a Solaris box. In the top command view, the "RES" column which I guess represents the physical memory is constant and reasonable. However the "SIZE" column keeps ...
2
votes
2answers
1k views

Unix one-liner to quote all words on a line

I have a text file which has lines consisting of words (separated by spaces) and I want to put quotes around all of the words. For example: Lorem ipsum dolor sit amet consectetur adipisicing ...
2
votes
3answers
639 views

Search for file names of a certain length on Unix

How do I search for all files of a certain length in a directory, in UNIX? For example, how do I search for all files whose names are of length 5 in the directory /blah? I've looked all over and I ...
2
votes
1answer
90 views

Copy everything in a subdirectory across to the relevant subdirectory elsewhere

At the moment I'm doing: for i in mdx/[0-9][0-9].png; do cp $i ../../d_s_c/images/mdx ; done But as well as the directory mdx, I also have other directories called ntt, etc. How can I say 'For ...
0
votes
3answers
8k views

How can I add line breaks in an XML file from the Unix command line?

I have a large XML file. From the Unix command line, I'd like to add a newline after every >. I have tried using sed for this, with no luck: sed -i '' -e's/>/>\n/' file.xml This just ...
2
votes
4answers
4k views

How do I keep folders synced and backed up between two macs using a Linux NAS (rsync?)

I've got two primary computers, one Mac Pro and one MacBook Pro for when I'm on the go. I've also got a Linux sever which also acts as NAS. Currently I backup the entire computers to an external ...
29
votes
3answers
23k views

Find out if user name exists

How can I find out, in a shell script, whether a given user name exists on the current system? /etc/passwd and /etc/shadow are incomplete. Consider OS X's Directory Services, or Linux with Likewise ...
5
votes
3answers
1k views

Why is the dreadful 'rm -rf /' even allowed? [closed]

We all know the destructive power of the following command executed as root: rm -rf / Related questions: How far will you get with a 'rm -rf /' deleting everything: # rm -rf / I fail to ...
2
votes
2answers
179 views

Is there a more detailed version of top?

I'm testing some software on a particular four core machine. Is there an option for top or a similar utility that can tell how much each core is being used for a particular job?
1
vote
4answers
1k views

Read a file that's actively being written

I am downloading a large file via FTP so that I can process the file on my local system. The program that processes the file reads the file line by line in a single pass, creating two new files from ...
0
votes
1answer
318 views

How to access an Ubuntu server(Guest) from a Ubuntu machine(Host)?

I am using Ubuntu 10.04 LTS - Lucid Lynx I have installed Ubuntu server (10.10) using Oracle VM VirtualBox How to access from host machine to that guest machine. IP of host machine: *.55.21.16 IP ...
0
votes
1answer
154 views

PC vs Mac… why are things this way? [closed]

Why is it that you can run all sorts of operating systems on PCs (such as Linux, Windows, UNIX, BSDs, etc) but can't run Mac OS / Mac OS X? Conversely, why can't you run anything but Mac OS / Mac OS ...
0
votes
0answers
53 views

How to delete directories in Linux without y/n prompt? [duplicate]

Possible Duplicate: Linux rm non-interactive command When I try to delete non-empty directories using the following command: rm -r NAMEOFDIR it prompts to if I want to delete each and ...
0
votes
2answers
507 views

File matching pattern on command line?

Can someone help me with a relatively complex command-line file matching pattern? I've got files in a directory as follows: 1.png 1_thumb.png 1-1.png 1-1_thumb.png 1-2.png 1-2_thumb.png 2.png ...
18
votes
4answers
675 views

Getting rid of a file called “-d” [duplicate]

Possible Duplicates: How do I delete a file named "-p" from bash? How to delete file with this name on linux: -]???????q Removing "-rf" file in Unix I've ...
1
vote
3answers
126 views

Software for exporting resume in different formats

I always find myself with the problem of having to translate my resume to different formats for applying for different jobs. Some people want it in a Word document, RTF, PDF (which is nicer since I ...
1
vote
2answers
65 views

Is there a savepoint like feature in Unix based Operating System?

I'm interested in knowing if things like File system structure creation/modification Execution of commands like adduser Changes made between specific duration start/end datetime can be reversed, ...
3
votes
1answer
631 views

Why are there weird commas in my /etc/passwd file?

There are weird commas after the real-name parameter of some lines in my /etc/passwd file. kye:x:1000:100:Kye,,,:/home/kye:/bin/bash What gives? Why are they there? Can I remove them?
0
votes
3answers
1k views

Can't seem to change directory - “No such file or directory” error using PuTTY

I am required to use PuTTY to submit a program but I have never used it before and am having a hard time changing my directory. I am successfully connected to a Linux computer from my own but can't ...
2
votes
1answer
1k views

Why won't my bash script work?

I'm getting more comfortable with the terminal in Mac OSX and I thought I'd have a dabble at bash scripting. Not wanting to crawl before I could sit down I wanted to write an incredibly simple "Hello, ...
17
votes
5answers
3k views

Does dual-booting an OS require a dual-core processor?

My friend claims that dual booting, using two different OSes, requires a multi-core or multi-threaded processor. Is this true? And if I install additional OSes, will my computer slow down any?
2
votes
1answer
255 views

How can I hide a user from the who listing?

Is it possible for a non-root user to hide themselves from the output of who/w, so that they can be logged in without other users seeing it? I think that the file /var/run/utmp might have something ...
7
votes
5answers
991 views

Is it possible to get your router's external ip address without using a website?

I was wondering if there was a way to find out your router's ip address without using a website like www.whatismyip.com. I searched around, and I am beginning to think it is impossible. If that is ...
2
votes
1answer
581 views

How to print only an IP address list of traceroute?

How do I print only an IP address list of a traceroute run? I don't want the web addresses like something-online.net and their round trip times. How do I get a "simple" traceroute from the ...
1
vote
1answer
172 views

How to delete files in a directory, that exist in another directory?

What I need is a 'subtract' operation on sets of files in different directories. Assuming this file system hierarchy: A\1.txt A\2.txt A\3.txt B\2.txt B\4.txt ... I'd like to remove all files under ...
0
votes
3answers
4k views

executing unix code from the terminal

I have a directory on my hard drive that contains a collection of Unix executable files that I am trying to run from the terminal. When I browse the directory from the terminal it shows all the files ...
1
vote
0answers
7k views

How to set permission to ftp-user so that has FTP access to /home/another-user/www/public_html folder?

I'm a novice with Linux/Unix. Basically I'm attempting to setup a Web server, and FTP server on a Linux box via SSH. My plan is to have Apache's root folder inside the main user account like ...
6
votes
3answers
3k views

How do I run this `find` command, but only on non-binary files?

I want to remove trailing whitespace from all the files in a recursive directory hierarchy. I use this: find * -type f -exec sed 's/[ \t]*$//' -i {} \; This works, but will also remove trailing ...
1
vote
1answer
139 views

Setting the last file status change time

stat will report the last access time, last data modification time, and last file status change time. utimes will allow one to set the last access time and last data modification time. Is there a ...
3
votes
1answer
370 views

Attributes of a file

I am trying to determine what all of the attributes are of a regular file (as opposed to a symbolic link, etc.) on Mac OS X with Mac OS Extended (Journaled) (HFS+). Here is my current list: ...
5
votes
4answers
4k views

What's the best way to perform a parallel copy on Unix?

I routinely have to copy the contents of a folder on a network file system to my local computer. There are many files (1000s) on the remote folder that are all relatively small but due to network ...
0
votes
1answer
66 views

Undocumented crontab entries

At one of the production servers, some processes are using crontab to start periodically. When I inspect the crontab entries, I see: * * * * * some job I cannot find out what this actually ...
1
vote
2answers
2k views

Unable to close SSHD on IPv6 TCP port

I'm running Ubuntu 10.4 and I've tried disabling IPv6 as I don't currently need it. I rand the following to disable IPv6 and then rebooted my server: echo "#disable ipv6" | sudo tee -a ...
8
votes
1answer
6k views

sudo chown fails with operation not permitted

I have found similar questions here, but the answers provided to those questions do not resolve my problem. If I do: sudo chown <username> main.m I get an operation not permitted error. ...
1
vote
1answer
1k views

Configure Ubuntu hostnames

I'm trying to configure a Ubuntu 10.4 server and have a little confusion with configuring with hostnames. My domain is example.com and the hostname would be one. If I'm correct, when I've configured ...
2
votes
1answer
368 views

Re-run command with prepended text from bash history

How do I repeat the last bash command with some text pre-pended to the front of it. So if the previous command was: $ ls /somedir I want to run the following command utilizing the bash history to ...
1
vote
5answers
37 views

Why does the shell perform pathname expansion for utilities?

This question is a sequel of how does grep work? It seems that the shell does the expansion of *.* to all applicable/available files and provide that to utilities like grep. Why does the shell need ...
1
vote
3answers
2k views

Ignore first N matches and print (N+1)th match in grep

How can I make grep ignore first N matches in a file, then print (N+1)th match and all k lines after it and then exit.
1
vote
2answers
535 views

ssh port forwarding from remote location to computers on server's network

I've been hunting all over the inter webs and I cannot find a simple example of the form of port forwarding that I am looking for. Well, the truth is, I may have just simply not understood the jargon ...
0
votes
4answers
94 views

Unix find command help

Hi can anybody help me with the following line; find . \( -type d ! -name . -prune \) -o -type f -name "*Log*" Basically it should find directories where files with "Log" in their name are present. ...