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
3answers
49 views

Check if any two files in a directory are identical?

I'm working on OSX and I have multiple CSV files in a directory. I want to check if any two of them are identical. I've tried: cmp file1.csv file2.csv || echo "files are different" This tells me ...
0
votes
0answers
7 views

more recent build of GNU coreutils for win32?

Is there a more recent build of unxutils.zip? (The unix command-line utilities for Windows) The canonical downloads are at http://unxutils.sourceforge.net/ but they date from 1999-2003; in particular ...
-2
votes
0answers
11 views

Unable to Concat Two String

This is my Script HOST='xx.xx' USER='' PASSWD='' ddate= date '+%Y%m%d' print $ddate fileName= $(STON_$ddate) print $fileName ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD ...
-3
votes
0answers
11 views

Multi-threaded export process [on hold]

I need to export/generate a gigantic amount of data/media (courses) from a CMS database running on an Ubuntu server. I know my way around Linux but I'm not an expert in the inner workings of ...
0
votes
1answer
18 views

Find UID of user via SAMBA [on hold]

Is there a way to retrieve the UID of a user via a SAMBA share? I can get the user list with: rpcclient -W 'WORKGROUP' -c querydispinfo -U''%'' '192.168.21.129' 2>&1 index: 0xa RID: 0x4c0 ...
0
votes
0answers
9 views

x11 forwarding from windows to unix

i am trying to launch some GUI to a UNIX server from my win7 laptop. I have installed XMing Server (as also its fonts and XLaunch) and i am using a putty in order to launch an SSH session from my ...
0
votes
1answer
31 views

Matching () with a Unix/Linux regex

I have a couple files with the name (a).1 (a).2 ... (a).100 Since a lot of processing tools don't really like ( and ) in the filename I thought it best to rename them to a different name. I googled ...
2
votes
1answer
97 views

Why can't “sudo cp” find the files?

Who can give me a logical explanation to this issue: I can not run this command: sudo cp /data/*20150522* /backup/ cp: cannot stat `/data/*20150522*': No such file or directory And when i switch ...
2
votes
1answer
29 views

AIX - how to change user shell to bash?

I want to know how I can run bash automatically when I log into my AIX server. How can I do that without having to type bash every time I log into my AIX server?
1
vote
0answers
25 views

Delay packets sent through a given TCP port

What is the best way to purposely delay packets (by 10 seconds for example) uploaded to a given TCP port (e.g. 1935) on the RTMP protocol? The approach must work on Mac OSx Yosemite. I have tried ...
0
votes
1answer
21 views

Unix Networked Display

I'm setting up a space for a group at school where we can do meetings and presentations. We have a few large displays that I would like to be easily usable over the network. We already have a server ...
1
vote
2answers
75 views

Edit xml file using shell script / command

I need to do this using unix script or command There is a xml file in /home/user/app/xmlfiles like <book> <fiction type='a'> <author type=''></author> ...
0
votes
0answers
15 views

To compile Pandoc Table in Editor by selection

Pandoc table in Tex document based on this discussion --------------------------------------------------------------------------------- ...
0
votes
1answer
37 views

How to Identify which person with root access has killed a job/process from a pool

I was curious to know if there are 3 or 4 people who has root access to a node. one of the person has initiated a job for running, But some one has killed the job that was running. what would be the ...
0
votes
0answers
10 views

AIX lspath doesn't show any output

root@xxxxx:/>lspath root@xxxxx:/>lspath -l hdisk20 lspath: 0514-538 Cannot perform the requested function because the specified device does not support multiple paths. ...
1
vote
1answer
58 views

Bash quotes unescaped on command substitution

Can someone explain me why this is working (listing the contents of a directory that has a whitespace in its name): ret="$(ls "my dir")" Shouldn't it rather be interpreted as: ret="$(ls " my dir ...
1
vote
1answer
34 views

Segmenting video to X seconds parts with ffmpeg

I have one video with duration of one minute and 35 seconds. I am able to split it into multiple 30 second segments (I am fully aware of other ways to split a video but chose this for a particular ...
4
votes
2answers
48 views

Why does bash need && to echo a variable on one line?

Why does SOMETHING=1 && echo $SOMETHING need && to return 1 Why doesn't SOMETHING=1 echo $SOMETHING return 1
1
vote
2answers
43 views

Copying Unix Executable File content from file to file

I am simply experimenting but have found a phenomena that I would be very appreciative if someone could try to explain. I write a simple Hello World program in C. Use gcc to compile this program into ...
2
votes
1answer
102 views

Get rid of “Resource Busy” message on Mac OS X

I am trying to repair a lost HSF+ partition table an iMac by running the i command inside of sudo pdisk /dev/rdisk1. Once I try running the i command, I get an error message saying that the resource ...
1
vote
2answers
45 views

Given key-value content, how do I group values by key and sort by value?

I've the following sample input format (file or stdin): key1: 1 key2: 2 key3: 3 key1: 4 key2: 5 key3: 6 Is there any few-liner which can group values based on the key and then sort? Expected ...
1
vote
3answers
47 views

How To Quickly Switch Paths (in Bash)

Sometimes, usually when installing packages with brew, I want to disable/remove certain parts of my path, and then later restore them. I haven't been able to find an easy way to do this, and while I ...
1
vote
1answer
42 views

How to parse a space delimited text file

I have a text file like this: Fam1000: CMIN|CMIN_9-RA CMIN|ABC_7-RA GCLA|EFX5.1 GCUC|GCUC_7-RA Fam1001: GCLA|EFX6.1 GCLA|EFX7.1 Fam1002: GCLA|EFX5.1 GCLA|EFX2.1 GCUC|GCUC_8-RA GCUC|GCUC_8-RA Fam1003: ...
0
votes
0answers
35 views

Linux - how to force the operating system doesnt go into maintenance mode

Is there any way to prevent or force a Linux System doesnt go into into maintenance mode when there is a system problem?. Example: In this case was for file integrity. Another opcion is if exist any ...
1
vote
0answers
68 views

How to convert .torrent file into magnet link?

I'm interested of converting a .torrent binary file into a magnet file. What are the possibilities to achieve that in Linux/Unix/OSX? Sample format: ...
2
votes
0answers
21 views

Why does Linux(and perhaps Unix) set the default chmod to 644? [closed]

The 6 for the owner makes sense, and 4 for groups makes sense. But why can everyone read? It personally seems like an opening for potential misconfiguration.
2
votes
1answer
47 views

UNIX, how to compare and transfer values between two text file

I have two text files with different number of columns in them and I want to compare values of a given column in file1.txt with values of a given column in file2.txt: if these values found in ...
1
vote
0answers
21 views

tcpdump - rotate capture files using -G -W and -C

I'm looking to be able to capture a rotating tcpdump output which captures 30-minutes worth of data, into 48 files, cyclically. The man implies this should be possible, but my testing doesn't seem to ...
0
votes
1answer
4 views

How can i detect if the virtual CD ROM is attached or detached?

I have a requirement where i need to check if a virtual CD ROM is attached if yes then read the values and apply it on to the application. But couldn't find a way to detect if a CD ROM is attached or ...
0
votes
2answers
65 views

Is there any Unix window manager that looks like it is from a sci fi movie? [closed]

I woke up today with a weird desire to make my laptop look like those sci-fi movies where a hacker/IT guy can save the world using just a macbook ( -.- ). Anyway on all those movies you can notice ...
1
vote
1answer
24 views

Unix permissions error when working with symbolic link and MySQL installation

I'm working to install MySQL on one of our servers. I'm the ec2-user, and I'm attempting to install in the ec2-user home directory, but allowing access to the directory to the mysql user. However, ...
-2
votes
1answer
18 views

File size is different in unix servers but count matches

I have a file in two servers like p01 and p11 ,both having same no of records but when i check the size both are different. Can anyone please explain me why it is like???
1
vote
2answers
36 views

What is the difference between the processes listed by `ps` and `ps -A`?

What is the difference between the processes listed by ps and ps -A ?
1
vote
1answer
19 views

Why the process of sleep command is always in sleep status?

Why the process of sleep command is always in sleep status ? Sleep status means waiting for I/O right ?
0
votes
1answer
14 views

shift all running process from user1 to user2

I have presently all my process running by user1 id on my server . Now we have a new user user2 and we want all the process running by user1 to run by user2. This is done for consistency as all other ...
0
votes
0answers
22 views

UNIX Command to Determine Mac OS Version on a Specific HD

(For some reason, the DeployStudio forums aren't accepting new members at the moment, so I'm hoping you folks can help me out) I'm in the midst of exploring using DeployStudio for a series of test ...
11
votes
4answers
1k views

Who deals with the star * in echo *

Who deals (interprets) the * in echo * Does the echo see the star or the shell take care about it and return a list of filename .. What about cp temp temp*
1
vote
0answers
75 views

How do I install Nix on a custom directory?

I have been trying to follow the Nix wiki to install Nix on a custom path /scratch/gopinath/nix. The /nix path is not accessible to me due to the restrictions on the system provided by my university. ...
1
vote
1answer
27 views

how to mount a network drive from specified network adapter in freebsd

I want to mount a network shared drive by my freebsd 9.3. I know This is possible by: mount_smbfs -I 10.1.1.20 //user@10.1.1.20/shared /root/local_folder/ This is done by default from em0. How can ...
0
votes
4answers
28 views

What issue exists when multiple lines of 'date' are used in bash?

I'm currently reading through a book on bash programming, Pro Bash Programming. At one chapter (Chapter 4) they ask what problem the following script has. I myself have no clue after reading through. ...
1
vote
1answer
23 views

Launch executable with custom root directory

How can I launch an executable so it thinks that the root directory is at a custom path, and not at the actual root. I thought it would be possible with sandbox-exec, but I haven't found any ways so ...
0
votes
1answer
14 views

iptables: Routing requests to localhost:8080 to google.com

I am trying a simple routing rule that would forward the requests to localhost:8080 to some external address (ex google). I added the following rule : sudo iptables -t nat -A PREROUTING -p tcp -d ...
2
votes
4answers
99 views

What is a backslash colon doing in this chown command?

What is the \: doing in the command below? sudo chown nobody\: folder/ Is it some kind of mistake?
0
votes
0answers
15 views

Java Runtime Exception: Unable to create lock manager

Hello when I run a script as root on unix shell it works, for example: sh -x /opt/auto/wso2is/bin/wso2server.sh However when I run it as a non root user I get the following error: ...
1
vote
1answer
22 views

How can echo the previous command I ran to a file?

I tried running echo '$(!!:p)' > /tmp/tmptxt.txt, however I just get $(!!:p). The previous command may have unescaped characters so I i need to escape it.
0
votes
0answers
29 views

GNU tar and condensed sparse files

My version of tar doesn't appear to be able to make non-sparse files sparse, though cp does. Are some tar implementations capable of this? (This answer suggests that they may be.) $ dd if=/dev/zero ...
0
votes
1answer
14 views

Using chuser and stopudt without root

I am trying to create a user account that can preform certain commands via command line without having to login as root. The commands I want to run are stopudt, chuser, chpasswd. What I have tried is ...
0
votes
0answers
15 views

Printing unique lines with uniq, OS X Yosemite

I am trying to print the unique entries in a column of a .csv file. For this, I tried the following: awk -F "," '{print $6}' dataCoarse.csv | uniq -u which just prints the 6th column as it is. ...
-2
votes
1answer
33 views

ls -ltr command in UNIX and Linux - Behaviour

Why does ls -ltr show different total? We have same files in both unix and linux environment please refer BELOW UNIX > ls -ltr /A/B/C/ total 2140 -rwxr--r-- 1 demo demo 14415 May 30 ...
1
vote
0answers
16 views

Set up multi-head environnement on FreeBSD running X.org

My goal is to set up a multi-head environnement: I need to have an extended desktop available on both screens with the ability to drag and drop windows from one screen to another. The left screen is ...