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
0answers
32 views

FTP: Connection Refused

I am trying to transfer files between a Linux PC to a Windows PC. I can ftp the Linux PC with localhost ftp localhost prompts for the username and password and the login is successful. But when ...
0
votes
3answers
42 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * ...
0
votes
0answers
17 views

How to temporarily disable rsh between machines for user only

First, please note that I am just a regular user. I cannot do anything as a super user. Our sysadmin has enabled rsh between machines in our local network. That is, I can do this: [user@machineA] ...
0
votes
0answers
26 views

Idle timeout Bourne-style shell

Is there any way to timeout idle users in Bourne-style shell (/bin/sh). man sh does not talk about it. http://www.freebsd.org/cgi/man.cgi?sh TIMEOUT or TMOUT shell env variables in /etc/profile ...
0
votes
2answers
31 views

How to find number of `_`-separated words?

I want to make a Unix command that reads a string and counts how many words it contains. In my case the words are separated by a _ (underscore) character, not spaces. For example, TABLE_PERSON ...
0
votes
1answer
21 views

Multiple copies of the same file as a result of make / make install

In a development project I'm involved in, we have some files in our src folder that don't need to be compiled (such as python files, a custom .bashrc script, etc...). Running make copies these to our ...
0
votes
2answers
73 views

Pass-through account login through WinSCP [duplicate]

I have a Linux server, where when I connect by PuTTY, I first need to log in using a non-root account (let's say user1), and then issue the command su root or su - root to log in to the root account. ...
0
votes
1answer
31 views

Unix : Avail Space of File mounts

Problem Statement This is regarding the space usage of file system mounted in Unix box df -h -> Gives the total usage/avail/used/used% of all mounts in unix server Is there any other way to ...
0
votes
2answers
47 views

Why my setting with NFS and setuid not working in Linux

I'm using Linux. On machine A I have such NFS setting in etc/exports: /home 10.0.129.130(rw,no_root_squash) I mount this directory on machine A on /home/nfs/ on machine B. And I've set setuid using ...
0
votes
0answers
65 views

(111)Connection refused: mod_fcgid: can't connect unix domain socket

I have a problem with one of my webservers. I have Apache and Nginx (like a proxy-reverse server). My Apache run with mod_fcgid for PHP5.3. All works fine, but only on a few requests show me this ...
1
vote
1answer
25 views

extract file content to mutliple files base on match pattern

I am new to unix. I would like to process this file. PP_NAME_1 jprovider|J Driver Provider|${J_DRIVER_PATH}/jcc;${J_DRIVER_PATH}/jcc_license_cu|${J_DRIVER_NATIVEPATH}|com.jcc.Connection ...
0
votes
0answers
15 views

set/modify environment variable for gnome/kde at runtime

Is there a way to modify or set environment variables in gnome or kde at runtime, ie. after logging in? I specifically need this for gnome, but knowing the kde method would be really useful too. If ...
0
votes
1answer
19 views

cursor ripple effect for screencasts and other useful action visibility tools

I was wondering whether someone could point me to any tools available for unix/windows/mac that enable useful screen cast options such as showing a circle that ripples out everytime a mouse click ...
0
votes
1answer
19 views

How do I quickly search through large ascii files with less?

I'm looking through some large log files (1-10 GB) and have been running into trouble using the standard less search functions (/). Searching for strings takes several minutes to find a match. I ...
1
vote
2answers
34 views

How do I unset (undo) unix set -C in zsh?

This works as expected $ echo "foo" > foo $ cat foo # foo $ echo "updated" > foo $ cat foo # updated From man set -C If set, bash does not overwrite an ...
0
votes
1answer
48 views

email command not working in UNIX Linux

I tried with 2 email UNIX commands mail and mutt from my Red Hat Linux box. It's not sending any mails to the email id I specified. echo "My message" | mail -s subject "test email" <my valid ...
0
votes
0answers
43 views

copy-paste in VNC (unix)

I have a copy-paste issue when connected to the VNC client. I am running the "vncconfig &" as requested and copy-paste works as expected. After few hours/day, the copy-paste function stop working ...
0
votes
0answers
14 views

How can I use zgrep to take a file with IPs and recursively search another path, then take matching lines and correlate them into a single txt file?

How can I use zgrep to take a file with IPs and recursively search another path, then take matching lines and correlate them into a single text file? The command I have been using to find a single IP ...
1
vote
2answers
214 views

Pipe output from two commands into one

Is it possible in unix/bash to pipe output from two commands into another? I tried running the following command, which successfully ran both commands, but the first was piped to stdout and the ...
1
vote
1answer
29 views

Move Files having No Extension

I have 5 files in a directory log.txt abc.pdf def.ppt 1CC 1DD Now I want to Move files having no extension i.e 1CC and 1DD to a another directory i.e tree. whenever i am manually using command it ...
1
vote
1answer
40 views

Find last 24 hours executed commands per each user in bash

How can I find last 24 hours executed commands per each user and mail them the result? I have Ubuntu GNU/Linux. I find out that I need a package named 'acct'. I have already installed and enabled that ...
2
votes
3answers
83 views

rm -rf doesn't work for an empty directory [closed]

In terminal I try to delete a directory but that doesn't work: myuser$ rm -rf foo/ rm: foo/: Directory not empty In my main directory I have only foo : myuser$ ls foo I haven't any problem with ...
0
votes
1answer
19 views

Replace '-' char using sed

I have a text file, quite similar to this one: JACK BLACK 123456 -1245368 - BRIDGET RED 1245 548425 + JOHNNY HOMUSS 55482 -4325 - I wanted to use a sed command ...
0
votes
3answers
51 views

Unix - Rename a file by removing last 2 instances of a character

I need to rename some files on Unix. I want to truncate the last two underscores and anything that follows them. For example: abc_def_ghi_121222_as.csv --> abc_def_ghi.csv ...
0
votes
1answer
42 views

Extract specific folder from a tar.gz

I know this question was previously asked on this site before like here 1 and here 2 but no success for me. I want to extract the Measures folder from my S012011_csv.tar.gz zipped file. If I do tar ...
1
vote
3answers
68 views

Is it possible to TFTP files via shell script in OS X?

I'm working on migrating my development environment from Windows to OS X and have run across a problem with TFTP. I use TFTP to upload files to an embedded network device, this is the only option to ...
0
votes
0answers
35 views

unix process showing unusual cpu usage and timing in ps aux

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 684 186912060 0.0 17140 988 ? Ss Feb24 54195432:44 root 7319 288895842 0.0 4096 668 ? S 04:30 ...
0
votes
2answers
34 views

Inserting a linebreak in lines starting with a pattern

I have a huge file that has the following format: #pair: 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 ...
-1
votes
1answer
45 views

Is GDDR5 compatible with DDR3?

I want to buy a MSI GeForce GTX 760 that is GDDR5 and I have a motherboard that is only DDR3. The thing is, I don't know if there is a newer type of motherboard that can support GDDR5 or my ...
0
votes
1answer
43 views

Interpretation of the unix command: ip address

I have to interprete the result of the unix command: ip address I'm getting something like this: 2: eth-man: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen ...
-2
votes
1answer
29 views

Algorithm to find the color of a shirt [closed]

My requirement is to prepare a 3-4 page of document explaining the different approaches or algorithms (currently existing) to find the color of a shirt. Can anybody point me to the link where i can ...
1
vote
1answer
41 views

sFTP process ids explained?

Could someone explain to me the process that sftp makes when creating a connection and transferring data, on a control/data level? I know the basics about the ssh authentication and such, but for ...
0
votes
1answer
15 views

what is the difference between /var/lib and /var/run

I am studying unix-like filesystem structure especially FHS. Anyways i know in the recent FHS /var/run is moved to /run I can't understand the difference between lib and run. Can someone elaborate ...
1
vote
3answers
74 views

The system cannot find the path specified

Here is my situation. I have a Windows server box and a Linux box. On my Windows server I have Sharepoint installed and was able to access the shared directory through the Windows command line by ...
1
vote
1answer
22 views

single click or command setup for webserver on unix system

One of the product has requirement of on premise webserver. We are using LAMP stack. We have selected website for on premise use due to business constrains. We are to install this on multiple servers ...
0
votes
1answer
25 views

Awk - Syntax error

I am writing a bash script. setenv lineNUM `grep -n ms-listviewtable wget_list.log | awk '{print $1}' | cut -d ':' -f 1` setenv next `expr $lineNUM + 2` echo `awk '{FNR>=$lineNUM && ...
0
votes
1answer
24 views

Create a new process and make it use more than 10% CPU?

Really odd question I know. It's to help demonstrate my university coursework. I'm going to be killing processes that are using more than 10% of the CPU.
2
votes
2answers
57 views

How to list only ordinary files on UNIX

I'd like to list only ordinary files (not directories or symlinks) using ls from GNU tools. So far I have only some hackish greps. Is there an option or better way of doing that? Edit: I need more ...
-2
votes
2answers
49 views

Trying to count and print song file names using awk

RANK NAME BAND YEAR GENERE DOMESTIC/INTERNATIONAL 206:Reach Out, I'll Be There:The Four Tops:1978:Pop:3/2 207:Bye Bye Love:The Everly Brothers:1950:Classic:3/2 ...
0
votes
1answer
33 views

I have file called songs and i'm trying to find the longest and shortest song name using AWK

RANK NAME BAND YEAR GENERE DOMESTIC/INTERNATIONAL 206:Reach Out, I'll Be There:The Four Tops:1978:Pop:3/2 207:Bye Bye Love:The Everly Brothers:1950:Classic:3/2 ...
1
vote
2answers
60 views

Monitoring Excessive User Home Directory Growth

I am trying to write a script for a school assignment that will check and see if any of the non-administrative user home directories have increased in size by more than 100 MB in a single 20 minute ...
0
votes
1answer
46 views

Domain [ Understanding ] issue when creating a Linux email server

Ok, here goes my paradoxical question. For about 1 year into my hobby-ish career, I used to buy my domains and a hosting package from Reseller Club. I purchased their " shared hosting " plan and ...
0
votes
1answer
50 views

Unix Scipt Shell: alert on change of specific files

Could any one Help me with the script Im trying to make a script shell that will alerts/email the root if any of those files has been modified and the script has to auto routine , so the script have ...
0
votes
2answers
21 views

Head of ssh file resource

Sort of an odd question, but is there some way that I can operate on remote resources as UNIX files? E.g. I'm looking for some way to do tasks like the following: head ...
0
votes
1answer
84 views

vi Error | Out of memory saving lines for undo - try using ed

While executing the following command on a large file: vi largeFile.log I get the following error: Out of memory saving lines for undo - try using ed My environment is: AIX6 I cannot add any ...
3
votes
1answer
113 views

Is there a scenario where rm -rf -no-preserve-root is needed?

I've seen some questions on here where people accidentally do rm -rf --no-preserve-root or rm -rf *, wiping out most or all of their file system before they can react. Is there ever a reason to use ...
0
votes
1answer
84 views

Piping tail -f into awk

Greeting, I am trying to pipe tail -f into awk to monitor a logfile in realtime, but according to examples, there should be not problem but I can't get it to work. here is the command I'm running ...
1
vote
1answer
73 views

From where comes the inode number of a file mounted through NFS?

I asked a question on codereview to know if I could safely replace the following code: :inode => [stat.ino, stat.dev_major, stat.dev_minor], which threw NotImplementedError because of jruby not ...
0
votes
1answer
19 views

Unix (process) creates a core file

I have a bit of a tricky situation. First of all I am a noob with no-to-little UNIX knowledge and experience. I work for a huge company with lots of security protocols and I can't debug or look into ...
0
votes
2answers
26 views

File sorting confusion

Q1. I have a command and I'm confused why it's sorting the filesizes by Kilobytes then Megabytes? $ find ~ -maxdepth 1 -size +1024c -type f -exec du -h {} \; | sort -nr 80K /home/sl6/S3401636/Lab 4- ...