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

1
vote
1answer
16 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 ...
-1
votes
1answer
14 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
18 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
11 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
15 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
37 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
32 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
0answers
19 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
12 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
21 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- ...
2
votes
0answers
12 views

find using regexp and echo matches

I have about 50 users in /home/ directory and I have cloned a git repository to everyone: Executed at /home/ as root user: find . -maxdepth 1 -type d ! -name . -prune -exec git clone ...
0
votes
1answer
16 views

7z commandline: test archive and only show failures?

What is the easiest way to get only the failures from 7z when testing an archive for integrity? Looking at the command-line options, there seems to be no verbose or non-verbose option (i.e. there ...
0
votes
0answers
21 views

Getopts - command with multiple options

I have a command script i'm making and wondering how do i go about combining multiple options the general usage of the command is as follows: Usage: myCommand [-fpr] [-n count] [-s size] [-u user] ...
0
votes
0answers
5 views

Homebrew and RVM bickering

Homebrew requires /usr/local/bin to appear before other binary directories in PATH RVM wants to be sourced last The bottom part of my .zshrc: Alternative 1: export PATH=/usr/local/bin:$PATH [[ -s ...
0
votes
1answer
14 views

Merging two directory trees with same structure, but different contents in Unix

I have two directories with the following structure: A |_0 |_1 |_2 B |_0 |_1 |_2 each 0,1,2 directory contains unique contents. I want all of the contents to simply exist as: A |_0 |_1 |_2 Is ...
0
votes
0answers
19 views

Kali Linux: Renaming files in bin

I'm just curious. I want to rename files in /bin such as - ls --> als //after I change it, the ls command no longer works and I have to use als instead - adduser --> aadduser - chmod --> achmod so I ...
0
votes
0answers
11 views

How to retrieve all messages from someone using lync

How can I get all messages from a person I have lync-ed, please?
0
votes
0answers
12 views

How does one install this mcrypt package?

I'm using MAC os x Mavericks, so after dlownload mcrypt-2.6.8, I decided to to configure ( per the recommendation of a dozen blogs ) like so : MACOSX_DEPLOYMENT_TARGET=10.9 CFLAGS='-O3 -fno-common ...
0
votes
1answer
30 views

scp file with spaces in it

I have a file called test file.txt on machine 1(windows). I am trying to get this file over scp to machine 2(Linux). setenv fileName "test file.txt" scp user1@machine1:C:\Folder\$fileName ...
0
votes
1answer
59 views

Setting up a working internet connection in solaris 11

the title of this post states most of my problem. I am trying to connect to the internet for like 3-4 hours. But for being a total newbie at unix environment I failed pretty badly. How can I configure ...
0
votes
0answers
19 views

How to find the currently running app from terminal on OS X?

I'm writing a shell script runs in the background and monitors user activity. I'd like to be able to capture current application/document if possible. How can I do that?
1
vote
1answer
56 views

Unable to open Windows Disk partitions in solaris 11

The NTFS Windows HD partitions are not appearing in solaris file system, which was not the case when I used Ubuntu. Every single file on my HD was exposed to me when I was in Ubuntu. I have already ...
-1
votes
0answers
15 views

Trace routing a network printer path?

Is it possible to trace the network path of a printer connected accross servers.how can i find If a print command is given for document through which server the document(or print queue) went accross.
0
votes
1answer
53 views

How can I organize my Windows directories more efficiently? [closed]

I've been using Windows (7 now) for years now, but I can never figure out how to efficiently organize my directories and programs. I'm finding it difficult to locate and run programs that are spread ...
2
votes
2answers
33 views

UNIX command for deleting / removing files on today's date

I want to remove all the files in the directory I am in currently in that were created today. So if today is April 3rd then the UNIX commond I am asking for would remove someFile2, someFile3, ...
0
votes
1answer
18 views

find files older than create its parent folder in a directory and move them there

I've been trying to create a bash script that does the following. Use the find command to search for files older than 7 days (find . -type f -mtime +7 ! -iname '.*', take the parent directory(of the ...
4
votes
3answers
46 views

Using Unix's find command to find directories matching name but not subdirectories with same name

Edited: I mistakenly misrepresented my problem. A more accurate example now appears below. I'd like to recursively walk all directories inside a target directory, and stop each recursive call after ...
0
votes
1answer
22 views

Why my freebsd has several sendmail processes?

While using freebsd 8.2, I noticed, by top, that several sendmail processes are always running. I never explicitly start any of them. Is it safe if I just kill them? And how can I detect which ...
0
votes
2answers
31 views

ifconfig command on mac does not show IP address

When I run ifconfig, eth0 is not shown, and only en0 is displayed: >> ifconfig en0 | grep inet inet 192.168.0.102 netmask 0xffffff00 broadcast 192.168.0.255 When I type My IP in Google, my IP ...
0
votes
1answer
14 views

What is the keyword in .ssh/config for tunneling in the background?

In command line option, we can specify -N -f to let it run in the background. How about the identical keywords in .ssh/config? Instead of doing ssh dest -N -f -L 1337:localhost:1337 I would like to ...
0
votes
0answers
35 views

Why do python's os.stat and du and ls not agree on block size?

While writing a simple function that computes the quantity of blocks consumed in a directory, I checked with du to see that I was getting the same answers. Why do ls and du say this file occupies ...
0
votes
2answers
34 views

Error - fi:command not found

if 0 -eq 0 then echo uploaded fi fi: command not found why?, can some one oint out the misake?. I am very new to unix scripting. I amusing 'csh'
0
votes
2answers
51 views

which unix or linux command is used to change root password of remote machine(Just an IP address) without using SSH Login

which unix or linux command is used to change root password of remote machine(Just an IP address)? Suppose I just have an IP address of the target machine which is on my network, But I do not know ...
0
votes
1answer
15 views

Cut - the delimiter must be a single character

I am trying to cut the information from a variable of a variable. I am using csh. Ex: setenv time \`date | cut -d ' ' -f 4\` echo $time setenv hour \`$time | cut -d \':\' -f 1\` echo $hour Output: ...
0
votes
5answers
89 views

Little clarity needed about: PC and Mac and Unix

I've always thought that a PC and A Mac were two different computing platforms, not just with in their operating systems (Windows & Mac OS) but different from hardware to thier respective internal ...
-2
votes
1answer
48 views

Should I switch over to UNIX? [closed]

I used Windows 98 second edition. I loved it. Then I started on Windows XP Pro 32 bits. I found it reliable and easy to work with. Now I get a message that Ms will not support Windows XP Pro, from ...
0
votes
0answers
27 views

OpenBSD Change tty background color

Is it possible to change the background color of one or all ttys without installing any additional packages? Using a config file, or environment variable? I tried changing the text mode resolution, ...
0
votes
1answer
26 views

What variables I can place in a Putty Link?

I create a new link in Windows with the following target: "C:\Program Files (x86)\PuTTY\putty.exe" -ssh username -pw password Are there any other options I can add in that one link target? I am ...
0
votes
0answers
15 views

Default location for public keys of remote machines on windows?

I want to move the files between a windows and Linux machine. Because I want to transfer without prompting for credentials I need to distribute the Linux's public key to the Windows machine. I am ...
0
votes
2answers
46 views

Is VIM adding the Windows newlines?

Notice the line endings from git diff: - IP_ADDR: 'http://1.2.3.4:143' + IP_ADDR: 'http://2.4.6.8:143'^M I edited this file by putting the cursor on 1 then pressing ct: and then entering the ...
6
votes
1answer
75 views

Merging different windows in tmux

my question is simple. I have two windows in tmux session, 1 and 2. How can I merge these two windows into one window splitted horizontaly/vertically? I couldn't find an answer in manpage, so I'm ...
0
votes
2answers
35 views

cat wc -l count lines line with defined line endings (e.g Mac OS X specific)

As any command-line user I sometimes want to count lines in text file with well known command: cat some_text_file | wc -l I face the problem on Mac OS X, which as far I have it studied is connected ...
0
votes
0answers
40 views

What is the meaning of double hyphen in reboot command

What is the meaning of the double hyphen in the following command: reboot -- -rx
0
votes
2answers
30 views

Linux move files from specific directory one directory up and delete empty folder

I need to move files out from directory inside directory inside directory and remove folder that i move them from. I would need recursive script. Directory structure: ...
1
vote
1answer
73 views

Unix Command to get number of lines in a csv file

Hi Iam new to UNIX and I have to get the count of lines from incoming csv files. I have used the following command to get the count. wc -l filename.csv Consider files coming with 1 record iam ...
1
vote
1answer
31 views

Does rsync delete files, folders at destination by default?

Files Suppose that /foo/src contains only A.c and that /foo/dest contains both A.c and B.c. And suppose I run the following command: rsync /foo/src/ /foo/dest Will rsync erase B.c? Folders Now ...
0
votes
1answer
20 views

Not able to reference softlinks in a script

we have couple of softlinks to scripts a directory in our current directory. Let's take we have two softlinks , script1 and script2. We are referencing script2 from within a script1 like below. . ...
0
votes
1answer
16 views

Concatenate header of one file with tail of another

I have a large gzipped mysqldump file which contains some table definitions and then many insert statements. I'd like to edit the table definitions but leave the insert statements alone. The file is ...
0
votes
0answers
18 views

Windows client that can SSH into a tablet running Unix via the USB cable?

Seems like there should be a solution to this : I run a Unix on my Android tablet. I take tablet to any old PC, and connect via USB. I open some kind of terminal program on the PC (eg. PuTTY, ...
-2
votes
1answer
35 views

Double directory separators

I wanted to ask about double directory separators, I'm using windows 7 and as i checked there is not problem for example with this string ////\\\//\\\/\ to be used as a directory separator, The ...