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

2
votes
2answers
77 views

How do I scan network requests of a software connecting the internet?

I'd like to know some way to scan programs networking activities. I mean record outcoming data sent by a program (e.g. program updater or a program itself). I guess this could be done using Wireshark ...
1
vote
1answer
190 views

Disable users from completing after a ~ in zsh

I like to use zsh's named directories feature to move about my file system quickly (e.g. so I can use ~src to switch to my source code directory). I also like zsh's auto-completion features. ...
1
vote
1answer
24 views

patching slightly different files on common stuff

I have tried using regular diff and patch to do what follows, but it doesn't seem to work or I am not using it right. I am wondering if there is a tool to patch changes to a file based on the ...
7
votes
4answers
11k views

How to limit output of ls to only show filename, date and size?

How can I use ls in linux to get a listing of filenames date and size only? I don't need to see the other info such as owner, permission.
3
votes
1answer
671 views

Alias find to ignore “permission denied” errors

When you run the find command on files you don't have permissions for, you get annoying "Permission denied" errors which clutter the output. Wikipedia suggests the following fix: If you're doing ...
2
votes
1answer
894 views

What's the Unix command-line symbol for “the PID of the last suspended process”?

In an interactive console like irb, sometimes something will go wrong and the console becomes unresponsive. One solution is to suspend the process, then kill it. To suspend the process, I can press ...
1
vote
1answer
153 views

How can I display all the lines that end with a certain character using grep?

I want to write a command to display all the lines in a given file that end with a ";" or a "." character. Why does this not work? grep ".';' | .'\.'" filename
2
votes
1answer
516 views

What does <html> do in a grep command?

I was wondering what does the <> do in a grep command grep a b c , try to find a in file b and c grep <html> foo? What does the <> do? Find the HTML tags?
1
vote
2answers
3k views

Zip all files in a directory, but don't include the top directory in the archive

Can't quite figure out how to do this right. I have a folder with a website in /var/www I want to create a zip file with all of it, which when I decompress it does not include the top directory. In ...
7
votes
5answers
6k views

How can I compare two directories, one being a remote directory?

I want to compare two directories, one is local and the other is on another machine. How can I do that? Can I do it with diff?
2
votes
1answer
752 views

Apply command to files which names match a regular expression

For example, I want to apply chmod 777 to every file in some directory which name matches some regular expression. Sure I can do stuff like chmod 777 f*, but when it comes to something more ...
3
votes
2answers
16k views

How to specify group with chmod?

I was asked to add group-wrx permissions to a directory in another user's home folder. I believe what I should do is run `chmod 771 -R directoryname' in the parent directory. What I can't find ...
0
votes
1answer
325 views

Why can't I view my Thunderbird e-mails due to a lock file?

I'm not able to view my inbox mails, I'm using Thunderbird. I have checked the /var/mail directory. There I saw the lock file: /var/mail/$LOGINNAME.lock I have removed the lock file and restarted ...
7
votes
2answers
7k views

Faster alternatives to “find” and “locate”?

I will like to use "find" and locate" to search for source files in my project, but they take a long time to run. Are there faster alternatives to these programs I don't know about, or ways to speed ...
4
votes
1answer
700 views

Linux: Print specific character range in each line

What is the most straightforward way, using Linux command line utilities, to print a specific range of characters for each line read on stdin? For example, for this input file: 1234567890 0987654321 ...
0
votes
1answer
467 views

Installing websphere in AIX (Unix)

I want to install web-sphere 6.1 in machine which has AIX OS. What is the command to install it? I need to install it from telnet. I have using tried the following command, but the installation ...
1
vote
3answers
119 views

Unix Utility to Constantly Read and Write Disk to Kill Clicking Drive?

One of my hard drives is slowing down and makes intermittent clicking noises. I'm pretty sure it's about to die and have backed up all it's contents. Is there some hard drive stressing utility or ...
2
votes
4answers
1k views

How does OSX run 64bit Binaries while running on a 32bit Kernel?

I have recently figured out that Mac OS X actually CAN run 64bit (x64) applications even if x86 kernel is loaded. That was shocking for me for a first time. But then I've realized that it is really ...
1
vote
1answer
486 views

How to convert a video for a Samsung Tablet on OS X or Unix

I have different kinds of files, mostly MKV and MP4. They are in 720p (ca. 1280x800). As far as I know, video for this my Samsung tablet should be 1024x768 maximum. It should also use the h.264 AVC ...
4
votes
1answer
651 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
11k 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
573 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
118 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
2k 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
662 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
969 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
656 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
92 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 ...
1
vote
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
25k 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
182 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
319 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
155 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
516 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
677 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
652 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?