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

Tool to connect to a file descriptor for I/O

I'm looking for a unix tool which can connect me to a specific file descriptor and do some I/O operations on it, assuming that the user permissions are valid. What could I look to use?
-1
votes
1answer
44 views

Port Number used by ping process

Ping Output: $ ping 192.168.20.36 PING 192.168.20.36 (192.168.20.36) 56(84) bytes of data. 64 bytes from 192.168.20.36: icmp_req=1 ttl=64 time=0.165 ms 64 bytes from 192.168.20.36: icmp_req=2 ttl=64 ...
1
vote
1answer
22 views

Bash: Is it possible to declare each list item on a new line?

Example: You normally list values in a horizontal layout for var in 0 1 2 3 4 5 6 7 8 9 do echo $var done It would be nice for version control and readability purposes to enter each list item on ...
0
votes
1answer
27 views

What is the difference between a service and an application?

In UNIX , what is the difference between a service and an application program technically?
2
votes
1answer
15 views

Unable to understand error with unzip

I have some *.zip files. I was trying to unzip these files through unzip command in Unix. But it is giving some trouble which I can not understand. Here is what I am trying to do unzip file.zip It ...
-1
votes
1answer
21 views

How can I filter unique lines based on a substring?

If I have a set of URLs in a file like: http://example.com/do?foo=bar&etc=123 http://example.com/do?etc=456&foo=bar I want to filter this out so that there's only one url for each unique ...
0
votes
1answer
24 views

How do I insert the results of a unix command into the tcsh CLI?

I often find myself wanting to create datestamped files and folders. For example, I'd love to be able to create a folder with a yymmdd datestamp called "160408-projectA" by typing: mkdir <ctrl-;&...
1
vote
1answer
20 views

Quicken resource fork issue? Identical files behaving differently (one works, one doesn't)

My hard drive recently crashed, and my last Time Machine backup was in November. Fortunately, I was able to get all the data successfully recovered, however, I'm having a serious issue opening my ...
0
votes
0answers
11 views

Need to delete a large batch of broken links--foreach fails on spaces

I deleted a directory at some time that has a bunch of links elsewhere pointing to its contents. I wanted to use a unix foreach to delete the now dead links from the directory without dinging other ...
0
votes
1answer
44 views

Find the largest file in a Synology NAS drive

I'm trying to find out in a Linux terminal on my Synology NAS drive, how to see how much space is taken up by directories labeled as eadir. For those not familiar, these are basically metadata files ...
1
vote
1answer
25 views

Write file from remote server to local directory?

I want to do some grep-magic to a logfile on a remote server and write the result to a local file on my computer. Is there an easier way than my 3 step solution: do grep-magic and write file on ...
1
vote
1answer
15 views

Trying to get pip onto UnixWare

I have an installation of UnixWare 7.1.4 for which I'd like to add (python's) pip. I know that get-pip.py is at https://bootstrap.pypa.io/get-pip.py My problem is that the only tools I have to get ...
0
votes
3answers
27 views

Delete lines that are not n consecutive lines starting with the same id

I have a file that looks like this: 194104,41.8,38.3 194104,46.7,39.6 194104,47.4,39.7 194104,49.8,44.3 194104,50.8,47.5 194136,39.9,36.3 194136,45.2,37.8 194170,46.9,42.2 ... I want to keep the ...
1
vote
1answer
22 views

Find only unique named files recursively

I'm having a problem finding only unique named files over directories and subdirectories. Files must be unique by their name, not md5 sum or content. I've managed to get list of unique files, but ...
0
votes
1answer
23 views

how do I sort the output of 'locate' by file modification time

When I use the locate command, I often wish that the output was sorted in reverse chronological order, just like with ls -rtc. What is the easiest way to achieve this?
0
votes
1answer
49 views

Simple ARP poisoning attack with UNIX?

I would like to know how to do a simple ARP poison attack with UNIX commands only (no ettercap or arpspoof or anything like that.) I don't care about forwarding packets to the actual router, I just ...
0
votes
1answer
37 views

Trying to install coreutils via MacPorts: “Error: Port coreutils not found”

I'm trying to use MacPorts to install coreutils. I check that MacPorts was installed correctly, $ port version Version: 2.3.4 and try to install coreutils, $ sudo port install coreutils Error: ...
0
votes
0answers
9 views

How can i search logs for specific timeline and copy them to local machine in windows?

Hi i am trying to find logs between 10am to 11am and i need to copy whole log file to local machine. i searched on google but not got exact syntax. steps: 1. getting logs from 10am to 11am 2. copying ...
-1
votes
1answer
16 views

Filtering out certain strings from standard input

I need a Unix command that will take piped input, filter out certain strings and write the rest to standard output. The catch is that it needs to be a one-line command that doesn't depend on anything ...
2
votes
1answer
78 views

Why did my root change to -bash-4.1?

My root@servername automatically changed to -bash-4.1@servername in one of the servers. I have the same .bashrc on both servers. Also when I do echo $PS1 I get the following, and it's the same on ...
0
votes
1answer
55 views

Is there any way to run a .jar file directly from a java Unix executable?

I have a .jar file and would like to open it using a Unix executable, java, that I have embedded within another application.(I do not have Java installed for security reasons) Is there any way to run ...
0
votes
1answer
13 views

Long running process / write stdout to files / split at X GB chunks

I have a long running process and I expect the log files to run into multiple hundreds of GBs. The program is a pre-compiled binary - so I can't modify the logic in the code. Is there a command like ...
0
votes
0answers
27 views

Shell script using diff to compare the different files

I have five different files and all are in different directory, I want to check matching files and find out the unique files as well. I am not sure how should I handle this.
0
votes
0answers
13 views

why upgrade and dist-upgrade in scripts?

I see quite a lot scripts where there is apt-get update && apt-get upgrade && apt-get dist-upgrade I thought upgrade is included in dist-upgrade, why do they keep doing this?
2
votes
1answer
56 views

Merge only new entries from one xml file to another

I have 2 xml files. The 2nd file has some new entries including same entries as that of the 1st file. Examples of the 2 files are given below. File 1 <SERVERNAME_ONE> <Protocol>...
0
votes
2answers
18 views

KShell script skips commands when scheduled in cron

I have a Kshell script which executes a java program. /path/to/java -jar jarfile.jar some parameters > log Same line 5 times with different parameters appending output to log file. cat log | mail -...
6
votes
2answers
67 views

What is the difference between ~. (tilde dot) and “exit” when exitting an SSH connection

Whenever I have a backgrounded X11 connection in an SSH session, I must use ~. and not exit to exit the ssh session. What is the difference here? Can I always use the escape sequence ~. ?
0
votes
1answer
54 views

arithmetic operation on a nested column in a tab delimited file

I have a tab-delimited text file containing Column1...Columnn columns and R1 to Rn rows. Within some of the columns, there are multiple nested fields with an identifier and then separated by semicolon ...
0
votes
1answer
17 views

How to enable ssh key authentication for root users?

I want root user to be able to login via ssh key authentication. How can I get that done? I tried changing the ssh config file and adding PermitRootLogin without-password but that didn't work. I also ...
0
votes
2answers
68 views

simple arithmetic operations on a tab-delimited text file in shell script

I have a tab-delimited text file containing C1...Cn columns and R1 to Rn rows. Column 10 (C10) has a field 'X'=four comma separated integer values (X=a,b,c,d). I would like do a small arithmetic ...
1
vote
2answers
36 views

Clubbing two files after every 12 lines in hp-ux system

I have two large files .one file contains 0-12 Hrs of data and other contain 13-23 hours of data . I want to merge it in a single file with 23-0 hours for each combination. ex : file1 abcdefg00 ...
0
votes
0answers
7 views

How to edit NIS group file

I run the ypcat group command, but I want to edit this group file. Please let me know how? I don't want to edit my local /etc/group file.
0
votes
1answer
23 views

Piping stdout from a command to stdin of two commands in sh

tee [using >()] command is not working because it is not supported in sh (bourne shell). What I am trying to achieve is sending the output of "ifconfig -a" to two different commands. This is my ...
0
votes
0answers
15 views

Convert list of Hardened Linux From Scratch packages into suitable format for md5sum -c

I'd like to create a file suitable for using with md5sum -c from this document: http://www.linuxfromscratch.org/hlfs/view/development/chapter03/packages.html I imagine this should be possible by ...
0
votes
0answers
123 views

Using wine for window printer driver on Linux

We have some old printers with Windows drivers only at my work space. Is there any general way to use their drivers through wine? I have not found any decent and new documentation about the problem. ...
3
votes
1answer
69 views

How to add a signature in UNIX mail command

How do I add a signature in a mail that is sent through mail command of UNIX ? I tried it by saving text in .signature and in .sig files but that didn't work for me. Any help would be greatly ...
4
votes
2answers
817 views

Send some text to mail from UNIX such that the text will appear in some color in the body of mail

I have some text in a file in UNIX. I send that file to my mail using mail command. What I want is the text to be appeared in some color in the body of the mail. The mail will be opened from Windows. ...
0
votes
0answers
28 views

Don't have write permission with root, on NFS file share

I logged in as root, and when I change directory to /nfs/home I can see user home directory. I was trying to create a another home directory for a user but could not able to perform, Permission denied....
1
vote
0answers
49 views

Colon(:) operator in Unix shell

As far as colon is concerned i understand that is is used in certain situations as a null and as a parameter of expansion for substring, but can someone explain me this: do_qc: $(STAGE1_OUT_FILES) ...
1
vote
2answers
29 views

What is % in Unix Shell

I am currently looking at a shell script which makes use of '%' sign. %.gtf.checked: %.gtf irap_check_gtf $(gtf_file_abspath) && touch $@ I am not being able to understand the use of '%'...
1
vote
0answers
40 views

inotify does run twice

I wanted to write a script that triggers some code when a file gets changed (meaning the content changes or the file gets overwritten by file with the same name) in a specific directory (or in a ...
0
votes
1answer
37 views

Passing unix shell (optional) text parameter without expansion

I want to write a unix/linux script updategit.sh with a default parameter to commit to git. updategit.sh should be POSIX compatible. I hope POSIX will solves some of worst incompatibilities of the ...
0
votes
0answers
11 views

How does zypper carry out whatprovides (wp) queries?

A kind soul pointed out to me here that yum uses sqlite databases for it's whatprovides queries. I was looking for a similar alternative for SuSE and got to know about Zypper. However I wasn't able to ...
0
votes
1answer
22 views

convenient, predictable entropy generator

I am writing test cases for a high performance data compression system. (well, not exactly it, but for the testing purposes it can be described as this) For the test i have to generate 500GB~3TB of ...
0
votes
2answers
29 views

Copying multiple similar files from several subdirectories

I have one hundred subdirectories containing 1 file of interest in each of the subdirectories. I want to copy these 100 (*file_of_interest.txt) files of interest to a new folder. How can I do it a ...
0
votes
1answer
25 views

Why does make install not update my symlinks?

DEAR FUTURE PEOPLE: When this happens, try adding --prefix=/usr/ or --prefix/usr/bin/ to the end of the command to invoke the config script. I thought that the entire point of including a ...
0
votes
1answer
13 views

Checking printing quota on Unix network

We have been told we are allowed to print up to 100 pages per month on our account on the departments network, but since we have seen some enormous batches being printed, and since we have no ...
1
vote
1answer
61 views

How do I sort files by date in filename?

I have a set of filenames like this vorlesung 02.11.15.mp4 vorlesung 04.01.16.mp4 vorlesung 07.12.15.mp4 vorlesung 09.11.15.mp4 vorlesung 09.12.15.mp4 ... The last part of the file name is a date ...
0
votes
0answers
20 views

How to log all commands on a Linux machine?

Good morning, My collegues have created a script that executes compilation commands on UNIX and Linux based machines. In order to execute that script, Eclipse needs to be installed on that machine. ...
3
votes
2answers
80 views

Can't create new screens when logged into a server over ssh

When physically connected to my "server" (typing commands from the desktop of a mid 2006 iMac), it gives the following output: mac~$ screen -ls No Sockets found in /var/folders/ht/...