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

Convert hexadecimal Shift-JIS to the characters

I am searching for the way to convert the hexadecimal value of Shift-JIS to the character in Unix/Linux command line. A Shift-JIS code table can be found here. For: 82 ae (0x82ae) I would expect: ...
0
votes
1answer
278 views

What does <<EOF do?

I am a newbie in Linux admin. While I'm learning GDB to debug my code, I need to create an input.txt file for my program to read. I know redirection symbols such as >, >> and <, but ...
0
votes
2answers
134 views

What is the exact different between Linux kernel release and version? [duplicate]

In Linux based operating system we can find Kernel release and Kernel version. So what is the exact different between Release and Version ?
0
votes
0answers
22 views

How to remove group message in Pure-ftpd

I have two servers with identical pure-ftpd configs. But, whenever client logs in to the second pure-ftp server, they keep getting the following message: 230-User xxxxx has group access to: 49 20 28 ...
1
vote
1answer
18 views

Alternative `batch` command for resources rather than load

I like the at and batch commands for scheduling long running tasks I do not plan to stick around to see. But my longest running tasks share resources other than just the CPU (databases, free disk ...
0
votes
0answers
8 views

SAS files getting created in Unix

Is there any process by which SAS creates data sets(.sas7bdat extension) in the /home directory? we have both 9.3 and 9.4 installed on the unix server. The programmers do not have access to the /home ...
1
vote
2answers
107 views

Linux command line to create a log file for rsync

I am trying to create a log text file after doing an rsync. I've tried using a command line: rsync -av /source/ /dest/ > log.txt The text file that was created only shows the file names that are ...
0
votes
1answer
30 views

How to create multiple random human readable txt files within a certain range of files sizes? Linux

Based on this previous post, I was able to generate a single human readable txt file of certain size. base64 /dev/urandom | head -c 26211000 > file1.txt base64 /dev/urandom | head -c 32211000 ...
0
votes
1answer
36 views

What does the second field in ls -l mean on OS X? What does “number of links” mean?

I'm on an OS X operating System, and I don't understand what the second field in the ls -l command is supposed to mean. Say I am inside an empty directory, and I create a single directory inside of ...
34
votes
6answers
2k views

A more comfortable way to edit a long $PATH?

I want to add, in ~/.bashrc, a few directories to my $PATH. My $PATH is quite long so it's a bit hard to see what directories it contains and in what order. I know I can modify my ~/.bashrc to be: ...
1
vote
1answer
57 views

Batch renaming JPG filenames in CentOS 7

I have about 80 of these files in my directory. -rw-rwxr--+ 1 vagrant vagrant 38122 Nov 13 12:19 CRMPicco RFC16 Women's 80.jpg -rw-rwxr--+ 1 vagrant vagrant 101286 Nov 13 12:19 CRMPicco RFC16 ...
0
votes
1answer
28 views

Need to skip password entry in script

Have a shell script on Unix server, that is needed to be launched by another script from Windows machine. And the problem is that script on Windows machine has to get a key-fingerprint (its located on ...
1
vote
1answer
32 views

sed, delete from MarkA up to but not include MarkB

Expression in math term, I'd like to delete a region of [MarkA,MarkB). I.e., the deletion happens right when the keyword MarkA is encountered, all the way to keyword MarkB, but not including that line ...
1
vote
2answers
105 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
11 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
51 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
21 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$ ...
1
vote
3answers
191 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
38 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
31 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
26 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
50 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
86 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
132 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 ...
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
43 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 ...
0
votes
1answer
121 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: ...
0
votes
3answers
118 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
105 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
71 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
23 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
102 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
137 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
36 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
511 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
41 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
32 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
138 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
31 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
458 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
201 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!
0
votes
2answers
41 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 ...
0
votes
1answer
35 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
29 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
50 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
134 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 ...