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
2answers
138 views

Samba - use only Unix users

I am setting up a home server with file sharing using Samba. It has XUbuntu 15.10. Samba uses passwords specified in shares-admin by default. However, I want Samba to use users from /etc/passwd and ...
0
votes
0answers
12 views

iscsi storage ( target per lun )

the question is straight forward, i have 2 servers clustered and need to share the same LUN (LUN1). I have mapped the LUN1 to TargetA. The question now is should I a) connect the 2 servers to the ...
0
votes
0answers
66 views

Tmux ssh to current server

I use tmux to keep multiple connections to different servers separate and organized. I find I often split windows if I need to keep an eye on more than one thing, but I always close the split, because ...
0
votes
1answer
23 views

Line ending ^I0 in unix file

I am trying to understand the difference between this windows line ending file: cmccabe@DTV-A5211QLM:~/Desktop/bed$ head -10 xgen_baits.bed | cat -et chr1^I955542^I955662^IAGRN_70^I0^I+^M$ chr1^...
1
vote
3answers
274 views

what happens when you have 2 network interfaces to the same network in a Unix/Linux OS?

What will happen if you have 2 network interfaces to the same network where the default gateway/router is? e.g network interface e1000g0 - 192.168.1.50 network interface e1000g1 - 192.168.1.51 ...
0
votes
1answer
47 views

Archive directory structure without file contents

I would like to create an archive capturing the entire structure of a directory, including subdirectories and files. Preferably preserving file attributes such as modification time. The archive ...
1
vote
1answer
32 views

cat /dev/random brings up print dialog

I was just messing around and in the terminal of my Mac I did cat /dev/random just to watch the endless stream of random values. It has now brought up a print dialog and it wants to print half a page ...
0
votes
1answer
13 views

unix line endings versus windows line endings

The below is verification of the line endings. Just curious what is the I? I know the M causes issues. Thank you :). cmccabe@DTV-A5211QLM:~/Desktop/bed$ head -10 xgen_targets_unix.bed | cat -et ...
0
votes
0answers
30 views

Different sized data blocks in a single file system

In Unix, each file uses one inode and each inode, in turn, may use a variety of number of blocks to store data. The size of the blocks in a file system may be configured or chosen but it must be ...
1
vote
2answers
52 views

How to fetch file from remote content based on partial file name?

I have some sub folders ( A, B , C ,D .. ) in a remote server which contains around 100.gz files . The file naming pattern is like ND2_58_20151105173030_20151105173240_1234.log.gz where 3-rd and 4-th ...
0
votes
0answers
92 views

Simple UNIX commands assistance

" Your current directory is stenton. Display phone_directory one screen at a time, until you find the record for 'Bruce Byce'. " phone_directory is a file inside my current directory. Ive been stuck ...
1
vote
4answers
150 views

Why does Linux have both a shadow file and passwd file? [duplicate]

I understand the difference between shadow and passwd, but my question is why do they have both? It seems like an unnecessary complication. Why not just store the encrypted password in the passwd file?...
0
votes
1answer
33 views

Linux find specific names of PDF files in a external hard drive and copy them over into my destination flolder

I would like to state I am a newbie but I do understand the very basics thank you I'm stuck here at work and I am trying to find files which are in a list in text file (they are PDF Files) and would ...
0
votes
0answers
49 views

Where are digital certificates physically stored on Unix / Linux

Can someone tell me and maybe link to literature which describes it, where are the digital certificates storage location on a Unix / Linux machine? I only know that they are stored under /etc/ssl/...
0
votes
1answer
160 views

Merging two files in unix, with one common column that is redundant

I have two files with one common column that is redundant.File 1 has chromosomal locations and TF's, file 2 has chromosomal locations and Refseq numbers. File 1: chr1:66997824-67000456  ...
0
votes
3answers
129 views

How do I replace numbers in specific field bash

I am using FreeBSD 3.2-RELEASE. For example output from last- abelovsk14 1 10-7 22:06 adamov14 5 10-5 22:53 almasi14 1 10-8 22:56 anda13 53 10-6 22:16 andrejko14 51 10-7 01:28 Is possible to ...
0
votes
0answers
134 views

replacing special characters without using escape sequence in unix file

I am trying to replace a string with special characters like " &,*,@" etc. This should be done without using escape sequence. I am using sed but it is not working without escape sequence. I am in ...
1
vote
2answers
72 views

sed pattern with multiple words to update

I want to do something like this, but I'm not sure how. I want to update the exports.version = '2.0.0' to a new value of exports.version = '2.0.1' Using: sed -i '.bak' 's/'2.0.0'/'2.0.1'/g' ...
0
votes
1answer
29 views

creating compiled TZ database from a posix timezone expression

I want to create a compiled TZ database file from a posix expression. Is there any unix utility which can create the TZ database out of the posix expression? I do check the zic command but I was ...
0
votes
0answers
123 views

How to capture packets of rysnc using tcpdump

I am trying to do rysnc a 4G file to another directory and want to capture rsync packets using tcpdump. I tried listning to port 873 which is used for rsync but did not find anything captured. I ...
2
votes
2answers
163 views

Is it safe to “Pull the plug” after running the halt command on UNIX

This is probably a dumb question with an easy answer, but I can't seem to shed any light on it after hours of Google-ing. From what I have learned the halt command on UNIX (e.g BSD) & Unix-like ...
0
votes
0answers
37 views

subshell variables not getting exported to parent shell

As part of porting scripts from HP-UNIX to RedHat Linux, I'm trying to set up config files accordingly. There is a scenario where the .profiles sources oracle env with SID as option to it, that in ...
1
vote
1answer
667 views

How to copy file to /usr/share on mac?

I try to copy some file to /usr/share folder, but the terminal said that operation not permitted even I do the with sudo. sudo cp ~/Downloads/kellys.vim /usr/share/vim/vim73/colors/ the result cp: /...
0
votes
1answer
43 views

Why does grep -r --include=*.js * > dirname/.filename not write all .js files to a single file?

I am trying to put all js files in a directory and sub directorys into a single file in lexical order. What did I do wrong?
0
votes
1answer
34 views

A Bash command to go through a list of files in a directory, find are replicates numbers 1-9, and concatenate them into a new file

I have a directory with a bunch of files Ex: ExperimentA_Rep1.bed ExperimentA_Rep2.bed ExperimentA_Rep3.bed ExperimentB_Rep1.bed ExperimentD_Rep1.bed ExperimentC_Rep1.bed ExperimentC_Rep2.bed . . . ...
0
votes
0answers
188 views

why does the scp command timeout when moving data from Unix to Windows 2008 R2

I am on UNIX environment using secure copy command to move files from one Unix box to another. No issues all is good. Now I have a need to move data from Unix to Windows Server 2008 R2 platform. Can ...
0
votes
0answers
33 views

kvm crash when running with default clock option

I am running kvm on an embedded linux platform. The OS running is a custom built Linux using kernel 3.18.21; packages are being pulled in as needed. The architecture is intel x86 64bit. When I run ...
0
votes
1answer
715 views

Ubuntu Additional Drivers not appearing 14.04

I have a Dell laptop and I recently installed Ubuntu as a dual-boot apart from Windows. I partitioned the installation properly but after the installation was done. I tried to connect to wifi and it ...
2
votes
1answer
237 views

Facing Issue for Installing Rabit MQ

Whem I am using the below command sudo apt-get install rabbitmq-server I am getting the below missing package dependency Reading package lists... Done Building dependency tree Reading state ...
0
votes
1answer
27 views

Will an executable from FreeBSD machine work on a Solaris Machine?

I have a very basic question. I'm new to the site. Will an executable file from a FreeBSD machine work on a Solaris machine as well? Any help will be appreciated!
1
vote
2answers
72 views

SSH key asking for passphrase on Unix but not Window

I have this weird problem. I am using SSH key to connect to my-server. I have generated both public and private key without password and my public key is installed on my-server. I can connect to my-...
0
votes
1answer
36 views

In Bash, can I have autocd open an editor if I enter a filename?

I’ve just set autocd in my .bash_profile: shopt -s autocd Now I can just type $ some-directory and automatically cd into it. Now, can I somehow tell Bash that if I enter not just a directory ...
0
votes
2answers
58 views

What is the point of getting software certified for the UNIX Specification? [closed]

Excuse my ignorance, but what is the main advantages for getting your operating system certified for SUSV3 or V4, POSIX, or other UNIX spec? Is there really a distinct advantage to complying to the ...
0
votes
2answers
24 views

shell - multiple text insertion into each line of a file

I have a text containing coordinates of points such as x, y and z, I would like to change each line to be like: Point{ (1000+linenumber) } = {x , y, z}; What I want is: for example for line 212 ...
0
votes
2answers
30 views

Deleting filtered files in Unix using Script

I need help in deleting files in one of my directories in Unix. In deletion, manually, I am using the command: to list the files: find . -mtime +5 -type f Then, if the listed files are ...
0
votes
0answers
60 views

AIX - Memory space error when running script

I run the following: for i in `ls -ld /u03/sss/| awk '{print $9}'` do echo $i for j in `find $i -name "*.gz" | grep $send_sysdate` do count=`gunzip -c $j | wc -l` sum5=`expr $sum5 + $count` done ...
1
vote
1answer
179 views

Set $PATH For /bin/false user

I have a sensu user: sensu:x:496:496:Sensu Monitoring Framework:/opt/sensu:/bin/false Its $PATH is: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin I want to update its PATH, so that ...
0
votes
1answer
30 views

How to determine the number of processes considered by the short-term scheduler for process allocation

My assignment is to write a script displaying the number of processes considered by the short-term scheduler for process allocation (processes currently ready to run) at any given time. Now, writing ...
2
votes
1answer
61 views

How can I make unix sort work properly using the underscore as a field separator?

When I sort foo and foo1, I expect foo to come first, which is what happens ordinarily with unix sort. $ echo -e "foo1\nfoo" | sort foo foo1 But when I add and underscore and use the -t and -k ...
-1
votes
2answers
385 views

cut: |: No such file or directory

while read line do echo $line calendar_date=$(cut -d\ -f1 $line) hr_of_day=$(cut -d\ -f2 $line) echo "...
1
vote
1answer
90 views

How do I find out what services are bound to a port number?

Given a TCP/UDP port number, how do I find out the name of the service bound to that port? I want to do this on various flavours of Unix. Mostly Gnu/Linux (usually Debian) and Mac OS X.
1
vote
2answers
73 views

Does it matter how many spaces exist in terminal commands?

For those of us humans trying to learn terminal languages and codes, does it matter how many spaces are or are not included in the commands and scripts of various languages? For instance, is there any ...
0
votes
2answers
50 views

Is it possible to make UNIX FTP client and CentOS VSFTPD server working together?

I have a UNIX bull AIX client with ftp installed and a CentOS 6.2 server with vsftpd installed. Can the client connect to the server ? Cause it seems that the vsftpd server is refusing all ...
0
votes
1answer
75 views

Reallocate available space from 1 file system to another?

I am currently using Virtualbox to run this server where my current disk space is: $ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/ol-root 50G 44G ...
-1
votes
1answer
111 views

Uploading a file through linux terminal

I looked at a previous question How to upload local file to server through Linux terminal and I am still having trouble performing the upload. I have downloaded a file to my computer and I am looking ...
0
votes
1answer
27 views

An archiving strategy that will allow me to view file contents without uncompressing to disk

I am running in Unix. I have a folder, which has a set of folders and text files under it. I wish to archive this into a single compressed file. However, through standard Unix commands, I'd like to ...
-1
votes
4answers
116 views

With KSH, how to convert “12345” to “1.2.3.4.5?”

With KSH, if I have a string 12345 and I want to it be converted to 1.2.3.4.5, how can I do that? I tried to use cut but it's not straightforward. echo "12345" | cut -c1
2
votes
0answers
545 views

How do I type the pipe symbol on a Swedish keyboard?

Being a Linux user, as most Linux users, I use the pipe symbol (|) daily. I'm currently sitting at a Swedish keyboard. There are three keys on the keyboard that (together with an orgy of four or five ...
0
votes
2answers
327 views

How to share putty session/screen with others in same network?

I am working on a windows machine which connects to Linux server, and I feel need of sharing my Putty session (for linux server) with others in my team (remotely located). All of us are in same ...
0
votes
1answer
440 views

Non sudo user prompted with message “rm: remove write-protected regular empty file” instead of permission denied

I added an extra disk to a linux server. I added the following line to the fstab: UUID=e277f402-bbac-4830-bc1d-5a849ffe7f9c /disk1 ext4 defaults 0 0 I then created a mount point /disk1 ...