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
1answer
20 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
67 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
95 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
32 views

subshell variables not getting exported to parent shell

As part of porting scripts from hp-unix to redhat linux trying to set up config files accordingly.there is a scenario where the .profiles sources oracle env with SID as option to it which in turn ...
1
vote
1answer
264 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
39 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
31 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
69 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
25 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
196 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
159 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
19 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
29 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
57 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
20 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
25 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
26 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
91 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
27 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
27 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
1answer
136 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
78 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
65 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
39 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
49 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
69 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
26 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
88 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
227 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
152 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
182 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 ...
0
votes
1answer
90 views

Using “tr” command hides the working directory

When I run the tr command in terminal as tr -d text My cursor performs a carriage return but the working directory line disappears. I cannot run commands afterwards unless I ctrl+c. What is ...
0
votes
0answers
23 views

Tmux reset scrollback on keypress

When you've scrolled back within tmux (using the mouse via mode-mouse), is there a way to make tmux reset the scroll when you press a key (unless that key is a tmux command)? This seems to be ...
0
votes
0answers
60 views

SFTP Unix Script with pub/priv keys

I have written a script that uses sftp to get files. The issue I am having is that it is still prompting me for a password. Before you say my ssh pub/priv key is set up wrong, when I sftp from console ...
1
vote
1answer
50 views

What is the number that comes after the interface name in “ifconfig -a” output?

What are these numbers 2043, 2091, 2276, 2324 that comes after the interface name—such as eth4 in this example—when I use ifconfig -a? eth4 Link encap:Ethernet HWaddr 00:0F:53:27:81:00 ...
0
votes
1answer
111 views

sshd error - what could be wrong?

I am getting the error below from my /var/adm/messages (or syslog) Aug 28 19:11:21 myhost sshd[25570]: [ID 800047 auth.info] Keyboard-interactive (PAM) userauth failed[9] while authenticating: ...
0
votes
0answers
17 views

Running SGE array job

I am working on SGE and I want to submit an array job for 10 files. For the time being to keep it simple I want to use only 2 commands in the script for each input files So let's say I have 10 input ...
1
vote
1answer
69 views

How do I create a shortcut on Windows to launch Urxvt w/ Cygwin bash but also with certain options beforehand?

Confusing title, I know. Here's the problem: To launch Urxvt in such a way that my extensions work, I'd open up Cygwin and use export DISPLAY=:0 and then urxvt. If I launch urxvt just with urxvt then ...
0
votes
0answers
20 views

Ampersand usage for naming a file in unix

What does an ampersand before a variable name mean? I have a file which uses a variable for naming the file. Eg var1=2015 Then the file is named as Xyz&var1 Can anyone please help me in ...
0
votes
1answer
143 views

Talk command only shows “Checking for invitation on caller's machine”

The talk command on Yosemite doesn't work and the /etc/inetd.conf file is nowhere to be found. Why is this file no longer included with OS X and why doesn't talk work anymore? Running talk just says: ...
0
votes
0answers
21 views

inconsistencies between df and du solaris 10

I have a problem with the /var having only 800MB left. yet du -sh /var show only 91MB used while df shows it is 5.4GB used.. I cannot find any symbolic links that will cause this.. so I cannot clean ...
3
votes
1answer
216 views

/etc/shadow - how could it be edited when it is read only

I am trying to change the content of /etc/shadow file but realize it is read only sghk1> ls -l /etc/shadow -r-------- 1 root sys 4045 Aug 19 16:13 /etc/shadow the /etc/shadow file ...
0
votes
2answers
79 views

FFmpeg : mp4 and multiple srt into mkv

I have a couple of srt subtitle tracks for an mp4 video. How do I make them into mkv using ffmpeg/avconv? I would like to use space efficiently. Performing conversion on Darwin v13. I will be ...
2
votes
1answer
30 views

Does a Unix process automatically get supplemental-groups permissions?

User spock belongs to groups human and vulcan. File holo is owned by user root and by group vulcan. Its permissions are rwxrwx--- (770). Process tractor is started by user spock, and has uid spock ...
2
votes
1answer
807 views

ls: cannot access file: No such file or directory

I fundamentally do not understand the issues I am having, but will update this post when I do. Let me just show you. Context: I added a drive to my machine, and for whatever reason, I am unable to ...
0
votes
1answer
182 views

How to free a port on OS X when lsof(1) reports that it is not in use

I am a developer working in OS X on Eclipse. A bug I have been working to fix in a web application results in some very strange behavior when resetting an instance of Tomcat, resulting in the ...
0
votes
1answer
45 views

Why awk printing wrong string into the output file?

I'm trying to read file with awk and write the output in a new file. Content file sample: DATE_Login|09:01:20.507|2015-08-13|TIME_Session|00:32:32|MX|w32 ...
0
votes
1answer
41 views

TCPDUMP Rotating Capture File using -G not working

I'm attempting to run a tcpdump for packet capture for the headers of encrypted traffic. I'm trying to do it with the rotating capture based off time. This is the command I'm running. sudo tcpdump ...
0
votes
1answer
34 views

Cannot Suspend vi with Ctrl-Z

It's on an AIX 6.1 connected via PuTTY 0.65. If I open a file and hit Ctrl-Z then. It works 1st. But when I switch back and hit Ctrl-Z again. A square cursor jumps to the bottom. I can type something ...