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
5answers
1k views

Second root account

i'm new in linux, so i'm sorry if my problem is a bit confusing. I'd like to do following: create a second root account write the file by using this account the first root account shouldn't be able ...
0
votes
6answers
222 views

Unix command history — finding a command fast

Is there a way (or a specific shell) to navigate the history in the following way: let's say I wrote the following command two weeks ago: scp ../../../file.txt ../../../... I don't want to use the ...
0
votes
6answers
5k views

let me know alternate command in DOS for following unix command

find /coe/informatica/v712_OMJ/AONE/SrcFiles/Archive -name *AccessOne_DF_BIFs.txt|cut -f8 -d "/"|cut -c 1-12 > ...
0
votes
5answers
373 views

Command line way to view a line of a file with context?

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux: $ (something) -l 154 stuff.py 150: def foo(bar): 151: """ 152: ...
0
votes
6answers
6k views

Copy file from remote UNIX terminal to local system

I use putty on Vista to connect to remote UNIX shell. But I want to copy files from that remote server to my local Vista system. How to do that??
0
votes
1answer
198 views

What permissions does a directory need so that anyone can cd into it but nobody but root can ls in it?

I have seen this before in some directories. Where if you know the name of a file you can open it and edit it, but you cannot ls in the directory so if you don't know the name of the file you can't ...
0
votes
3answers
244 views

Nano: Will it be there for me?

I know nano (and Pico!) well on *Nix systems, and don't even know how to get out of vi if it accidentally loads (though on emacs I can get that far. Questions about my intelligence aside, is it okay ...
0
votes
3answers
5k views

Stuck when executing grep in unix

after executing grep '19-12-2008 without ending the quote.i got stuck with > in command line how to exit
0
votes
2answers
4k views

Making a directory on unix readable,writeable,executable by me and no one else?

What is the proper way to make a directory that I created and all of its contents readable/writeable/executable only by me, and no one else? Is this sufficient: chmod g-rx mydir/ this should make ...
0
votes
2answers
1k views

Why can't I access the bin directory?

Why can't I access the bin directory with the following command? ls / this shows me the hidden bin folder cd bin I get this error 'No such file or directory'
0
votes
7answers
1k views

What does following cat commnad in Unix mean?

What does following cat commnad in Unix mean? I am new to Unix cat test.txt | java myfilegrammar.pcfg > test1.txt 2> test2.txt
0
votes
3answers
97 views

What's the name of the file system of the operating system in UNIX\Linux?

Is that correct to assume that the operating system is ALWAYS placed in /usr in all kinds of UNIX and Linux? I'm writing a script that has to check the free space in the operating system's file ...
0
votes
3answers
5k views

Find and replace string in a list of filenames

I have a couple of files like so, (on Mac OS X): product-103-footer.tpl product-103-header.tpl product-103.tpl I want to replace '103' in all the filenames with something else using grep and sed, ...
0
votes
4answers
524 views

How do I move a line in a file to the top from the command line?

I would like to move a path in a file to the top of the file. Each path is listed 1 per line. How do I move /someplace/2nd/ to the top using only the command line? /someplace/1st/ /someplace/2nd/ ...
0
votes
3answers
5k 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 ...
0
votes
3answers
14k views

How do I compress the contents of a folder using 'tar' over SSH?

How do I compress the contents of a folder using the tar command on an Unix system over SSH?
0
votes
2answers
37 views

How to automatically remember the last path where I was? [*nix]

Is there any scripts or tools that can automatically remember and write down the path I am? I asked because, when I was remote accessing my campus cluster via ssh last night, they will log me out ...
0
votes
4answers
906 views

UNIX command for pid running in background

I am running various programs on Unix in the background. Each program is outputting into a different file, e.g.: python eventsim.py > logfile & python eventsim.py > log1 & Now say I ...
0
votes
5answers
111 views

Linux find files

What could be a command to find all files owned by "abc" user, I guess that can be extended to finding all files with group 'def'. e.g. if I got result (ls -l) such as one shown below -rwxrw-r-- ...
0
votes
5answers
5k views

How to run programs from a different directory in unix

I know this is a very simple question, and that many similar (but more complicated!) questions have been asked- So i wanted to ask this in a very plane manner. Sorry if this voids the rules of conduct ...
0
votes
2answers
1k views

Why did the rm command behave like this and what damage would i have caused

Assume am in directory /home/userA There is an environment variabe $XMLFILES that points to /u/xml/xmlfiles. The $XMLFILES environment variable is in userA's environment/profile I log on as userA ...
0
votes
3answers
197 views

What's a Unix command which will output a list of files in a folder to a text file?

I'm on a Mac with Mac OS X v10.5 (Leopard). I'm using tcsh, but I could use Bash if it'd help.
0
votes
4answers
759 views

Is Mac OS X a Unix OS? [duplicate]

Possible Duplicates: Mac OS X = UNIX? How Unix is Mac OS X? I am quite new to Mac OS X. Is it built using Unix? Forgive me for my ignorance but if it's built using Unix then it should be ...
0
votes
2answers
879 views

Check If a script is executed as root?

I have a script that requires root privileges. I have to execute it either via sudo or from an account with uid 0 (e.g. root). If the script is not executed with sufficient rights then I want that ...
0
votes
2answers
251 views

Used tar with wrong order of arguments and overwrote original file. Any way to recover?

Pretty noob move but used tar with the source and destination file arguments swapped resulting in a complete mess (the source file has been overwritten with another file of same name with size 4kb). ...
0
votes
2answers
9k views

set -T in bash - what does it do?

What does set -T mean in bash? What does it do? I believe it is related to traps in Unix but I am not sure. I found this: Many of such constructs become more simple if traps would be called ...
0
votes
1answer
9k views

UNIX: how to merge 2 text files?

Is there a way to merge 2 text files into one (by appending the content of the second right after the first one) in Unix ?
0
votes
4answers
9k views

How to remove file (which has white space in name) from Unix?

How to remove file (which has white space in name) from Unix?
0
votes
3answers
335 views

Solaris says my partition is using 100+ GB, but the partition looks empty. Where is the space being used?

I'm telnetting into a Solaris 5.9 box that's supposed to store our oracle database. I deleted the old version of the database, tried to move in the new version (the entire database is 90GB) but I ...
0
votes
4answers
237 views

How can I do `ls` on a dotfile?

ls on a dotfile My directory contains: $ ls -A .dotfile20091021 file20091020 file20091021 I want to list ALL files containing 20091021 in their name. If I run: $ ls -A *20091021* ...
0
votes
8answers
117 views

What are some good websites for reference on Unix commands? [closed]

I just start using Unix and terminal, and find myself constantly typing searches for individual unix command references. I'm wondering if you guys had any specific sites that you use for most of your ...
0
votes
2answers
3k views

how do I copy files from a remote host to my computer?

I am trying to use the following command: $ scp remoteusername@host:$HOME/fileiwanttocopy /my/local/comp I woould like for home to be evaluated on the remote host instead of my computer (which it ...
0
votes
2answers
150 views

unix Command doesn't work

The command: tar c DIR | compress >DIR.tar.Z which works on a Debian-based Linux, fails on SunOS. Why?
0
votes
3answers
142 views

UNIX vs Windows Filesystem; why does UNIX assign a finite space for each directory?

All, I am finally getting settled into the intricacies of NIX however one thing I am still trying to figure out is why UNIX assigns hard disk space to each directory in its filesystem. I discovered ...
0
votes
4answers
336 views

bash - directories ending in . and whitespace cannot be removed

On my external hard drive are two directories, Fun. and Complex_, where that _ is a whitespace. I cannot empty from my trash or remove them with rm -rf and I want to. Neither show up in Finder on ...
0
votes
2answers
77 views

Can I use `which` command for partial match?

I want to find all programs with name like "gcc", "gcc-4.2", "gcc-4.9" and so on. To find all binaries I tried with which -a gcc*. But "*" is not recognized as 'any' with which command. Is there ...
0
votes
3answers
193 views

Heavy file copy to linux

I want to copy a a heavy setup file(Binaries of a software) 3.4 GB from windows to Linux machine. But I am scared as I dont know if I will copy the file under /home drive it may get full, and space ...
0
votes
2answers
336 views

Unix list absolute file name

Given an arbitrary single argument representing a file (or directory, device, etc), how do I get the absolute path of the argument? I've seen many answers to this question involving ...
0
votes
4answers
2k views

Is Mac OS X a licensed Unix or Unix-like clone that conforms to Unix specification?

Is Mac OS X developed on a licensed Unix or is it a Unix-like clone that, unlike Linux, conforms to Unix specification well enough to be registered as a Unix OS. Not until Leopard, Mac OS X did not ...
0
votes
2answers
595 views

defaults “command not found” when executed after declaration of variable

Why does the following code not work? #!/bin/sh PATH=$PWD/Info defaults read $PATH Everytime I execute it I get ./script: line 3: defaults: command not found Once I do it in one line it work ...
0
votes
2answers
693 views

How I can download this directory?

Is it possible to download this entire directory with wget? How I can do that? This is the directory with the files that I want to download: ...
0
votes
2answers
120 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
4answers
1k views

Process consuming maximum CPU

How do I identify the unix process using the maximum CPU. since i am not a power user.. will i be able to find it using ps command? Also, I login to the server using SSH client or telnet..
0
votes
4answers
28k views

How to end a program in an unix shell? [duplicate]

Possible Duplicate: what to do when ctrl-c can't kill a process? On my laptop I press the laptop function key + break. On my desktop, my break key (next to print screen) is like this: ...
0
votes
2answers
221 views

Different /bin/sh for a specific user

I am running an Ubuntu distro where /bin/sh is a symlink to /bin/dash. While this is OK for most of my users, one of them must have bin/sh "symlinked" to /bin/bash. Is that possible? I am not sure ...
0
votes
1answer
329 views

Why do linux packages expect root permissions to install?

This is a question about the design choices of *nix, not how to avoid it. What is the purpose for requiring root access to install most packages? It seems like a potential security hole to require ...
0
votes
3answers
3k views

How to install and uninstall Java 7 in Solaris 11 x86?

How to uninstall java jdk6 and jre6 from Solaris 11 x86 OS? and install java7? How to set the path and class path?
0
votes
5answers
418 views

UNIX: Merging files with different extensions to one file

For example: In my /temp directory I have 100 files.. 50 with the extension of .msg and 50 with .xml. /temp/test1.xml /temp/test2.xml /temp/test3.xml ......... /temp/test49.xml /temp/test50.xml and ...
0
votes
4answers
53 views

short alias for file in bash command

I want short way to access files, which i usually use in bash. For example, see logs. Now i use: less /var/log/user/server.log less /var/log/user/server2.log I want shortcut, to do less server.log ...
0
votes
4answers
465 views

Vim inserting characters before a comma on multiple lines

Say I have the following DRAFT, SAVED, ARCHIVED, DELETED; And I want the following: DRAFT("draft"), SAVED("saved"), ARCHIVED("archived"), DELETED("deleted"); How can I do this with vim? I'm ...