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

2
votes
1answer
23 views

Generate a sequence of numbers from human-readable input

In bash, I have a program that lists several choices of files to download, then prompts the user to select some. I'd like the user to be able to type in something like 1-6,8,11-12 to download files 1, ...
1
vote
1answer
16 views

How can I get the unix group name based on the group id?

How can I get the unix group name based on the group id? Note: looking in /etc/passwd or /etc/groups is not a solution as some systems may be using NIS so the users and groups are not listed there.
-9
votes
0answers
26 views

Oracle database 11g [on hold]

C:\Users\Administrator> emctl status dbconsole; EM Configuration issue. H:\app\Administrator\product\11.2.0\dbhome_1/ManjuTakhar-PC_orcl not found. C:\Users\Administrator> emctl start dbconsole; EM ...
0
votes
1answer
13 views

tar: backup before overwriting

The cp command has a feature not well-known to everybody that it can backup before overwriting the target file. Does tar has such feature as well during restoring? I saw an option of --backup, but ...
-5
votes
1answer
45 views

What is the difficulty of coding an operating system? [on hold]

If you were to take a sample UNIX/Linux build and produce an Operating System off of it what would the difficulty be, implying that you know the coding languages used to code such Operating System and ...
0
votes
0answers
12 views

Unix: Traffic Control with pfifo queues

I'm writing my master thesis in computer science and I need to control traffic flows in my testbed. Unfortunately ethernet has got the best effort prinicple, so if there are two traffic flows on one ...
2
votes
1answer
25 views

Running native applications on the Linux Kernel

When the Linux kernel has loaded it loads the distro or OS to take over, how can I make the kernel load some native application (written in c) instead? I don't need a GUI or anything, Instead I want ...
0
votes
0answers
13 views

How can I get “find” output so that I can copy and paste it to other commands?

Is it possible to print find output paths in such a way that you can copy and paste them, they will already be properly escaped so that you can execute commands on that path? Usually I have to put ...
1
vote
0answers
27 views

How can I efficiently filter Dos packets? [duplicate]

I have recently been the victim of some Dos attacks. The facts : I received a very high amount of packets saturating my connection and preventing me from accessing the Internet during one hour ...
-1
votes
2answers
32 views

how do i create a user account in unix using CLI?

I am using Redhat and I want to make a user account using CLI. I am using this commands but I guess it's not working. # useradd smithj -c 'John Smith' -m # passwd smithj and the result should be ...
0
votes
0answers
19 views

Any file copy to /my/ftp from user(khan) should have 664 permission in solaris

I have one ftp directory /my/ftp and owner is raza. user khan is copying files to above directory. I want any file copied by user khan should have 664 permission. I tried by setting umask 002 in ...
39
votes
11answers
7k views

What is the relationship between Unix, Linux, Ubuntu and Debian?

What is the relationship between Unix, Linux, Ubuntu, and Debian? I suspect they are all Operating Systems that are based upon one another - similar to how Windows is based on DOS. Is my suspicion ...
1
vote
1answer
13 views

why isnt the inode id of dotdot didnt have the updated inode id?

I have a function that backtracks from the child directory to the root by getting the inode id of the parent from the ".." dentry of the child. The main purpose of this backtracking is to identify the ...
0
votes
0answers
14 views

Very simple, single-user, hardcoded password FTP server for ubuntu

I have just mounted a Ubuntu box and would like to quickly spin a really simple FTP server that gives access to this server to upload the files. I just need a single user and I can create the password ...
1
vote
1answer
17 views

Are file systems like SFS and UFS still used today?

I have read the Wikipedia pages for both these file systems: SFS (Smart File System) UFS (Unix File System) but I couldn't find a real answer. For example, for SFS the common Operating Systems ...
0
votes
2answers
20 views

Linux terminal for virutalization purposes, no X windows

I was wondering if I could download a linux distro somewhere that just featured the terminal with no GUI. Would this be possible in a Ubuntu liveCD?
0
votes
1answer
21 views

change permissions to a directory to 701

I'm supposed to change permission to a ~ directory to 701, thing is this is a web programming class and I know nothing of unix. I managed to get remote access and I can execute commands, so can anyone ...
0
votes
0answers
10 views

SQLServer compatibility with DoctrineDbal and Unix/Linux

I'm designing a solution for a web portal. This portal will use the micro-framework Silex which provide database access through Doctrine DBAL libraries. My target DB is a SQLServer 2008 which is ...
0
votes
1answer
24 views

find boot-up script on any Linux/Unix installation

I need to run a program on boot-up and install the corresponding code into the system startup-script. Unfortunately, not all are using the same system: I checked Debian and CentOS and they use ...
1
vote
1answer
37 views

Copy and paste text by using mouse, just as the functionality works in UNIX

Please excuse my ignorance, and possibly laziness if a similar question has already been asked. I am a UNIX user, and I am new to MAC. I am so used to copying text on UNIX by just clicking left ...
0
votes
3answers
35 views

How to list file names on Windows as the Unix find command?

I'm looking for an equivalent command line on Windows to the following Unix command: find test -name '*.txt' -print This command lists every filename which is in the 'test' folder and subfolders, ...
0
votes
2answers
22 views

What is a better approach for ZFS?

I am making zpools on FreeBSD machine. While creating zpools I observe these two cases:- If I take raw disks and create zpool then I am able to form zpools and they are working perfectly. If I ...
2
votes
0answers
27 views

Windows 7, repetition of audio tick.wav, like those Unix guys can do, from other application.

At org-pomodoro_resources at master · lolownia_org-pomodoro · GitHub / resources, there is a tick.wav file, to be played repetitively, from Emacs. I have tried start, wmplayer, vlc, play (sox), and ...
0
votes
0answers
27 views

How can I get “ldd” on Mac OS X?

"ldd" is a Unix/Linux utility that allows you to determine "dylib" references within an executable file, typically created by gcc or g++. There is an Apple equivalent called "otool" that uses a -L ...
-1
votes
1answer
13 views

Parallel data to file

this question is about catching printer data and writing it in a file. We use an old Unix system which is unfortunately crucial. This Unix system uses a matrix printer. This printer seems to get its ...
0
votes
0answers
16 views

Get growl notifications from within a unix screen which is not in focus from a remote SSH session

Using iTerm2 I have growl notifications working within a (unix) screen session on remote servers when that window has screen's focus: My server's ~/.bashrc has: growl() { local ...
0
votes
1answer
26 views

Fedora17: yum update not working

I am new to linux environment and I have been assigned the task of installing a browser in my system (which I feel a really tough work in linux as a first time user). When I am trying to run the ...
0
votes
1answer
28 views

Shell Command that Combines chmod and chgrp

Is there a combined variant for chmod and chgrp that sets both user and groups permissions in one single system call for each file? This is useful for increasing performance on slow data layers such ...
0
votes
2answers
49 views

How to delete half of the files in a directory?

A directory has files with names ending 001 to 100. How can you delete 2,4,6,8...100. And can that be written as a script. As soon as the directory becomes week old, this has to run. And after a month ...
0
votes
1answer
23 views

how to mass convert .xml files in a directory to UTF-8 while retaining the same filename

I have many .xml files that are encoded in ISO-8859-1, and I want them all in UTF-8. I figured out the code to convert them individually which is : iconv -f ISO-8859-1 -t UTF-8 filename.xml > ...
1
vote
1answer
23 views

Unix2Dos: can't stat - what does this mean, why does it happen?

I've got a txt file that has Unix newlines and needs to have Windows newlines. I try to do unix2dos filename.txt but I get Unix2Dos: Can't stat 'filename.txt'. In fact, it says Can't stat 'xxx' for ...
1
vote
0answers
20 views

Edit bootable img file on mac OSx

I have downloaded a bootable image of ubuntu (7.95Gb .img file) for a Parallella (minicomputer), but its too big to fit on my 8 Gb micro sd card (which actually is only 7.8 Gb!). I would like to ...
0
votes
2answers
51 views

Is it possible to install OS Windows 8.1, Windows 7, Windows Server 2012, Oracle Linux, Oracle Solaris, Fedora Linux?

I'm planning to have 6 operating systems in my laptop. And wanted to have more in the future. I want to install 2 versions of desktop OS in windows (7 and 8.1) and a server OS in windows (Windows ...
0
votes
0answers
32 views

Is it wrong to root login with SSH? [migrated]

I've long been under the impression that with unix, you should never login as root. Now I've started using Virtual Private Servers over at DigitalOcean, and some advice is to use SSH keys to login as ...
1
vote
0answers
37 views

In the Terminal is there a way to search for a command you previously entered? [duplicate]

In the Terminal is there a way to search for a command you previously entered? Say you typed something in just a moment ago, you can press the up arrow. But if you typed it in hours ago, or a day ...
0
votes
1answer
13 views

in Unix reading a beginning of a filename and inserting it to another file

Could anybody tell me what is the best way to copy fragment of a filename, for example axheMyfile.txt, read first 4 unique letters and copy that to a new tabdelimited file to be merged with another ...
0
votes
0answers
8 views

Unix environment variables for Unix-derived apps in Windows

My problem is that cross-platform apps initially written for Unix/GNU+Linux trash my Windows filesystem by placing files wherever they can. In most cases this can be solved by setting environment ...
0
votes
1answer
18 views

How do I make less open binary files without confirmation?

I have several log files that contain a few bytes which are not displayable characters (due to binary signatures on the requests). Every time I open them with less I get asked: $ less ...
0
votes
0answers
17 views

Installing APK's through mobile terminal ide?

I was wondering if you could manually install apks that are downloaded onto the SD card of my android tablet. I'm looking for something similar to the sideload command when connected to a computer. I ...
1
vote
2answers
37 views

Compare two files and output the differences

I am aware of diff and using loops but I just cant seem to really get what I need with diff. I'm basically looking to compare two files (file2.txt and file2.txt) and just get the output of what is ...
2
votes
2answers
37 views

How to find the common paths from a list of paths/files

Prelude: Given a sorted input of a list of paths/files, how to find their common paths? Translating into tech term, if feeding the sorted input from stdin, how to pick the shortest proper prefix ...
0
votes
1answer
26 views

including timestamp in file name

I tried to create a file like this to put a timestamp in the file name vim Customer1-$(date).txt The result was Customer1-Sat.txt, however, I wanted the full timestamp Sat 30 Aug 2014 09:41:27 PDT ...
5
votes
4answers
294 views

Why does the root directory '/' have a reference to its “parent”?

I'm currently developing a fake filesystem for a browsergame. I recently implemented ".." and "." folders so every folder has a reference to its parent. Then I checked in my terminal if "/" also has ...
0
votes
0answers
37 views

ksh script using if break statements

I have a script file that has the server details like set -A SERVERGRPS SERVERS_CA SERVERS_NY set -A CA ca126 ca546 ca 642 set -A NY ny112 ny113 ny114 now I have to write a another script which ...
0
votes
1answer
29 views

Linux bash iterating and Break

I have two server groups SERVERS_CA AND SERVERS_NY. I will have a array something like SERVERGROUP=(CA NY) CA and NY will have set of servers in arrays like CA=(ca126 ca546 ca 642) NY=(ny112 ny113 ...
0
votes
1answer
49 views

Cannot change directory into home directory, although permissions are set correct

I guess I need some help from an advanced Unix user... On a Ubuntu System I did something stupid. I typed sudo chmod 774 .* or the like, in a subfolder of my home folder and then I suddenly could not ...
0
votes
1answer
29 views

Tar withour directory structure and exclude folders

I am trying to create a tar file to exclude certain folders and then I want to have a tar file without the parent directory structure. I am able to exclude folders, but when I extract I see path from ...
1
vote
1answer
194 views

boot2docker mount windows share

I am running boot2docker on windows and I am trying to access a shared folder on my host from the VM. I have executed the following sudo mkdir /mnt/docktest sudo mount -t cifs ...
2
votes
2answers
229 views

Copying folder from one Unix server to another, updating owners IDs

I'm using the method described here to copy a directory from one Unix server to another (both Ubuntu 14.04): rsync -aruv localfolder/ user@server:destination/ I need to keep the same owners and ...
0
votes
1answer
53 views

How can I get more information from Curl regarding a FTP 425 “Cannot open data connection” error?

I am trying to upload a file with the following line: curl -3 --ftp-pasv --ftp-ssl-control -v -i -T ./mybigfile.gz ftp://lawrence@mecloud.xxxxxxx.co.uk:21/OnlineBackup/Lawrence/ --insecure -u ...