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

Including and excluding in one regular expression

We're using HP SiteScope system at work to monitor logs and get alerts when a special string or combination of strings is caught. There is one field where the regular expression that catches the ...
2
votes
2answers
2k views

Explanation of the directory hierarchy on Mac OS X

Can anyone explain (or more likely, point to a good article that explains) what the various directories should be used for. (I assume the structure is very similar on all Unix based machines, though ...
0
votes
1answer
9 views

When I delete a file/folder on Windows in a Samba share - what unix commands are being issued?

Let's say I have a Samba share and a Windows client deletes a folder in it. Is it the same internally as rm -rf foldername? Is there any cleanup needed? Also is there a difference for the Samba share ...
0
votes
2answers
14 views

How can I start the process that doesn't die even after I close ssh?

I am sshing to my remote CentOS 5 server and want to run a script that takes long time. How can I have it keep running even after I close ssh session?
0
votes
1answer
213 views

Irritating GitHub Conduit dialog opening up whenever I visit a GitHub link — can I get rid of it?

X-Post from a [closed] StackOverflow question. I have a problem that sprang up out of nowhere in the past two or three days. Whenever I'm using Git in Terminal (which is pretty much always), if I ...
0
votes
2answers
6k views

hod do i grep multiple keywords from a file?

I want to use unix's grep function to pull out multiple lines (with different key words) from a file in one command line. e.g. i have something like doc-A1-151 file-A2-15646 table-A3-1654 ...
129
votes
8answers
117k views

What is the “You have new mail” message in Linux/UNIX?

Sometimes, when I log into a box and 'su' to root, I get a cute little message saying I have mail (thank GOD it's not AOL). Where is this mail? What does it contain? Who/What sent it? How important ...
6
votes
3answers
6k views

How to get I/O usage by process in Unix? [duplicate]

Possible Duplicate: Linux: Is there something similar to "top" for I/O? I am trying to do some CPU intensive operation on a Linux machine and it is showing very high load. I want ...
5
votes
1answer
732 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?
0
votes
0answers
12 views

kernel issue with USB [on hold]

I found that many people (google search) who use Unix/Linux have this message popping out from time to time hub 1-1:1.0 over current condition port 5. I have not been able to find the cause of this ...
31
votes
2answers
8k views

How do I reload .inputrc?

Background I have heard that the readline module is reading ~/.inputrc and that is how it changes the behaviour of keystrokes under programs such as bash. Question How can I reload this after ...
-4
votes
1answer
3k views

shell script to send an alert mail if disk usage exceeds 90% and another alert at 95%

I am new to shell scripting and want to implement a script on my server which will automatically send email alerts if the disk usage goes over 90% and second email alert when it goes over 95%. my ...
2
votes
1answer
32 views

recreating just the uid/gid unix permissions from tar

I was restoring a root partition based on a tar backup from system-rescue-cd. It went ok except the uid/gid mappings on the system-rescue-cd disk did not match the ones on this debian system that I ...
0
votes
0answers
3 views

Convention / File Hierarchy for Compiling Source

Background: I have been compiling a lot of source code lately and I am hoping to learn of a convention to organize source code / compiled output. As an example, I have been statically compiling ...
10
votes
7answers
6k views

Sorting human readable file sizes

How can I sort a list using a human-readable file-size sort, numerical sort that takes size identifier (G,M,K) into account? Can I sort "du -sh" output for example? Problem: Consider the problem of ...
15
votes
7answers
4k views

How to make Emacs read buffer from stdin on start?

With Vim I can easily do $ echo 123 | vim - Is it possible to do with Emacs? $ echo 123 | emacs23 ... Emacs starts with a Welcome message $ echo 123 | emacs23 - ... Emacs starts with an empty ...
0
votes
0answers
11 views

Approach to providing read-access to logs

We have many servers (Dev, Integration, PT etc.) and there are a lot of tomcats running on each server. Our application is divided into components and each tomcat runs with the name of a specific ...
7
votes
4answers
12k views

count lines in a compressed file

if i have a .gz file on unix which has certain number of lines. How could i count the lines on unix without uncompressing it.
0
votes
2answers
4k views

How to move files to hdfs in hadoop using unix command

I have 2 directories "dft" and "hdfs" in the unpacked Hadoop folder. I am trying to copy the file(StartUnit.txt) in dft into hdfs. The corresponding command and exception are as shown below ...
-2
votes
1answer
17 views

Basic and grassroot learning of UNIX [closed]

What are the function of the following commands: ps -ef ps -ef|grep <filename> dmh -q/-m dmh -q -11
2
votes
5answers
209 views

UNIX how to resume process using ID?

I have a problem to resume process. I tried to get process to foreground using jobs, it works, but if i close shell and start it again. In this case i haven't my process in jobs list. I know just ...
2
votes
1answer
2k views

Need to copy a file from unix box to windows folder using pscp command

I have a unix svr A: username: uname password: pwd then there are some files under /usr/local/jboss/configuration which are accessible only when a 'sudo su' command is performed. (and the username ...
0
votes
1answer
20 views

Environment variable LC_ALL is always unset by default. why LC_ALL is unset?

Why LC_ALL is always unset by default on Linux and Unix machines? For example, on Linux: root@icubes:[~]# locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" ...
2
votes
2answers
364 views

How to compare two files for non-printing characters

To share a configuration file between two computers, I emailed the file to myself via my gmail account. When I loaded the conf on the second computer, the program had trouble reading every line. ...
3
votes
1answer
2k views

How do I move a linked file on Unix?

I have a bunch of files in one directory and links to each one of those files in another directory. So ls -l looks something like this: lrwxrwxrwx 1 rembol rembol 89 Jan 25 10:00 copyright.txt ...
22
votes
9answers
12k views

Is there a way to display a countdown or stopwatch timer in a terminal?

How can I display a real-time countdown timer on the Linux terminal? Is there an existing app or, even better, a one liner to do this?
0
votes
2answers
38 views

Vim: how to perform this task every time I open a file?

For a time I have one vim configuration on my laptop and another on my desktop, so when I edited filed on my Dropbox between the two I would end up with format issues. Specifically, I had ...
0
votes
1answer
21 views

Convert PNG to Multi-page PDF

I've seen a lot of posts about how to convert a multi-page PDF to PNG but I'm wondering how I can go in the opposite direction if I have the size of each page I want made.
1
vote
1answer
35 views

Extracting a tar.gz file returns, “This does not look like a tar archive.”

I have a tar.gz file and I want to extract it using terminal. I used following commands: tar tvzf ldtp_3.5.0.orig.tar.gz and tar -xvzf ldtp_3.5.0.orig.tar.gz. However, I get the same result for both ...
0
votes
2answers
467 views

How to update a TAR/Gzip archive

I have compressed a folder using tar like this: tar cvfz folder.tar.gz folder/ Now, say I have changed some of the files in that folder, added some and removed some. And now I want to update my ...
1
vote
3answers
3k views

Using egrep to find lines that have 5-6 Upper Case letters. (but not more than 6)

First off, this is homework and unfortunately I have to use egrep (and not with -w or anything of the like). I need my grep to return lines that have exactly 5 or 6 upper case letters. Doing ...
2
votes
4answers
1k views

How to grep for a line that has the same number you both need and don't need

This isn't at all easy to explain but easy to just show. I have lines in a file such as: 100Dollars 3 IP 200Dollars 3 IP 300Dollars ...
0
votes
2answers
622 views

How do I set the Android bash path in ZSH?

Looking through the Cordova Android docs, I see this line You need to add the path to your Android SDK platform-tools and tools directory. In my example I will use ...
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 ...
0
votes
1answer
190 views

How to write a script that does what less does?

Question: Create a script such that it is a command that has the same effect as the "less" command (implement the script by calling "less"). What I wrote: #! /bin/bash for index in "$@" do less ...
0
votes
1answer
15 views

How to receive files on Windows SFTPd by a Unix machine

I have a Unix tool that generates files. The same tool can run SFTP commands and push out files to other machines. I have a Windows box that needs to accept files pushed out by the Unix machine. What ...
0
votes
1answer
26 views

Open file using bash with unix executable

I have an application which loads using a bash script e.g /Applications/My.app/Contents/MyExecutable I can load this using bash like so "/Applications/My.app/Contents/MyExecutable" However, I ...
-1
votes
0answers
15 views

Access Linux Shell via SMS from mobile phone [duplicate]

I want to set up a simple phone (not a smart phone) so that I can text shell commands to my google voice number, have my linux server read those texts, execute shell commands, and text me back the ...
0
votes
1answer
17 views

Match unix shell promp to that of vagrant

Not sure what it's called but in vagrant when logged in as the vagrant user I get a pretty line before I run commands like so: It even says what branch i'm on in git. What is this line called and ...
1
vote
3answers
201 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 ...
5
votes
2answers
1k views

How to create a file with a “#” character in the name in Unix?

I've tried many commands already for creating a file and deleting a file with a # character, but it does not work. Can anyone tell me the command to create and then delete a file that begins with #?
3
votes
2answers
73 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 ...
1
vote
2answers
25 views

Terminal window scrollback buffer using screen utility

I am used to using screen on UNIX (AIX/Solaris) at work. I've installed it on my two home boxes running Ubuntu and Debian. The only difference I notice is that when I scroll up in the terminal window ...
1
vote
1answer
22 views

Issues using scp to copy a file in Unix

I have a script where i need to get the cksum of the files in a directory from another host. I was able to do ssh to another host and create the file.txt. what i need to do now is to scp the file ...
5
votes
1answer
718 views

How to continue scp transfer from last file

I was transferring large files using scp, but I got this error: write failed: Broken pipe lost connection. Now I need to re-launch scp but tell it to continue from where it left off. I looked into ...
2
votes
3answers
3k views

How to scroll backwards when displaying file using “more” command?

Return scrolls forward. How do I scroll backward one line at a time?
4
votes
3answers
3k views

Unable to do passwordless login to FreeNAS

I'm trying to use this command to allow me passwordless login to a FreeNAS box: cat ~/.ssh/id_rsa.pub | ssh root@server.com 'cat >> ~/.ssh/authorized_keys' But I get: ...
3
votes
2answers
93 views

Merge by date multiple log files that also include un-dated lines (e.g. stack traces)

How can I merge log files, i.e. files that are sorted by time but that also have multi-lines, where only the first line has the time, and the remaining ones have not. log1 01:02:03.6497,2224,0022 ...
0
votes
0answers
6 views

Calculating difference between file sizes in the Unix command line [duplicate]

Want ask question about file sizes. I have same filename but different date. How I can display different of file sizes between 2 files? For example: filename_todaydate.txt: 417kb ...
0
votes
0answers
36 views

Which file system best handles multiple, concurrent write sessions: GFS2, pNFS, FS-cache, XFS or OCFS2?

Which file system can handle more concurrent write sessions; let’s say 32 write sessions: GFS2 pNFS FS-cache XFS OCFS2 The file system has to handle 32 concurrent sessions with each session ...