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
23 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
7 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 ...
0
votes
1answer
22 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 ...
0
votes
3answers
2k views

TMUX key bindings

I have a problem with TMUX key bindings. When I'm working on a terminal pane, if I press ctrl+pgup, it should scroll the screen one page up, as a normal terminal, but it doesn't. Also, while using ...
32
votes
2answers
36k views

How to find files with certain text in the Terminal

I'd like to find all files that contain a certain string of text. How would you do that in the Terminal?
0
votes
1answer
26 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 ...
1
vote
1answer
14 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 ...
1
vote
3answers
1k views

How do I set the Android bash path in ZSH?

Looking through the Cordova Android docs, I see this line You need to add the path to your Android SDK platform-tools and tools directory. In my example I will use ...
0
votes
0answers
12 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 ...
41
votes
2answers
7k views

'less' command clearing screen upon exit - how to switch it off?

How to force the less program to not clear the screen upon exit? I'd like it to behave like git log command: it leaves the recently seen page on screen upon exiting it does not exit the less even ...
-1
votes
0answers
18 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: ...
3
votes
3answers
1k views

How to uninstall preinstalled UNIX software on Mac OS X?

I want to uninstall some applications shipped with Mac OS that are a part of UNIX. My plan is to uninstall most of the default stuff to install it via Macports. That would make upgrading, ...
0
votes
1answer
3k views

ksh Auto-Completion PuTTY Configuration

I'm having a bit of a problem configuring my PuTTY client to work with the auto-completion feature in the ksh shell. I do a listing on the root with the directories /home and /homeroot and it returns ...
0
votes
0answers
10 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 ...
14
votes
5answers
23k views

finding L2 cache size in Linux

I wanted to know how to find L2 cache size in Linux... for L1 cache size, I am doing the following pico /proc/cpuinfo what about L2 cache size?
0
votes
1answer
83 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
2answers
35 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 ...
3
votes
5answers
4k views

Linux/Unix command to join N lines of input with delimiters?

At the Linux/Unix command line, I want to turn this: A B C A B C . . . into this: A,B,C A,B,C ... Is there a simple built-in command to do this, or does this require diving into Awk, Perl, etc.? ...
3
votes
1answer
13k views

Cannot open software remotely XQuartz Xlib: Invalid MIT-MAGIC-COOKIE-1 key

I am using mac os 10.8.2, and connecting to a cloud computing cluster through Xquartz. I do: ssh -CY <uname>@serveradress and then ./<softwaretoopen> and it opens the software ...
2
votes
1answer
32 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 ...
-1
votes
0answers
15 views

How to align output from unix command in one row

I am running df command for space utilization of a number of space together and outputting it to a sheet but the output of one row gets split into two rows with misalignment in column. Ex: My command ...
4
votes
2answers
5k views

Copying from one file to another using nano editor

How do I copy a few lines from one file to another file using the nano editor?
2
votes
1answer
20 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 ...
1
vote
1answer
28 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 ...
5
votes
2answers
26k views

How to specify group with chmod?

I was asked to add group-wrx permissions to a directory in another user's home folder. I believe what I should do is run chmod 771 -R directoryname in the parent directory. What I can't find ...
6
votes
2answers
77 views

Why does bash need && to echo a variable on one line?

Why does SOMETHING=1 && echo $SOMETHING need && to return 1 Why doesn't SOMETHING=1 echo $SOMETHING return 1
0
votes
0answers
13 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
0answers
13 views

Getting an error while trying to save a cat output using read command

I am new in UNIX and need some support, What my script is expected to do is changing an entry in an existing file by input from the the User: echo 1 | read LINE_START echo finish line ...
2
votes
1answer
22 views

Auto source a script after sudo su

I am working on a machine that has some user accounts that are dynamically generated, and therefore I can not user customize the .bashrc or .profile. I frequently need to use these accounts to change ...
1
vote
1answer
9k views

Setting timezone in AIX

The timezone is set to "CET" but date displays CEST $ echo TZ CET $ date Tue Apr 16 15:56:57 CEST 2013 Noticed the timezone on another similar system is "CET0" (not sure what the 0 means here!). ...
0
votes
0answers
11 views

How to wrap search when using less +F

I found the less +F is pretty useful for me to quickly switch to search mode to search the file being tailed. Is there any way I could wrap my search to the top of the file? I also tried to use ...
0
votes
2answers
7k views

How to move files to hdfs in hadoop using unix command

I have 2 directories "dft" and "hdfs" in the unpacked Hadoop folder. I am trying to copy the file(StartUnit.txt) in dft into hdfs. The corresponding command and exception are as shown below ...
3
votes
1answer
22 views

Unix tool to print directory (recursively, with ASCII art)?

Is there a command-line utility that can be run in a directory and output something like this, a pretty-printed directory structure? myproject └─ src ├─ master.scss ├─ my-module.scss └─ ...
2
votes
3answers
3k views

How to test stability of wireless router

I had a wireless router that would intermittently drop connections, so I had switched to using a different router. I have since updated the firmware on the problematic router. Is there an easy way to ...
0
votes
0answers
26 views

How to communicate with a LaunchAgent via Unix Sockets?

I'm trying to setup a LaunchAgent (running in the current user's UI context) that can receive "commands" like a server. The "commands" are sent by a LaunchDaemon running as "root" user, or some other ...
12
votes
7answers
16k views

How to make a statement that checks if something is divisible by something else without a remainder (BASH)

#!/bin/bash Echo “Enter a number” Read $number If [$number ] ; then Echo “Your number is divisible by 5” Else Echo “Your number is not divisible by 5” fi the if [$number] statement is what ...
2
votes
1answer
59 views

Bash History Not Preserved Between Terminal Sessions on Mac

My bash history mysteriously stopped working, and I have no idea how to fix it. This is what my .bashrc looks like: HISTSIZE=500 HISTFILESIZE=500 HISTFILE=$HOME/.bash_history However, when i ...
0
votes
1answer
14 views

set fileformat=unix permanantly

When I built WSO2 product pack from terminal using maven clean install and going to run from terminal by issuing below command at product home directory ./bin/wso2server.sh I got below error ...
0
votes
1answer
148 views

Where is “unix:abstract=/tmp/dbus-KtyPDgWNin” socket file saved?

I try the following: roroco@roroco ~/Dropbox/rbs/ro_cmds $ echo $DBUS_SESSION_BUS_ADDRESS unix:abstract=/tmp/dbus-KtyPDgWNin,guid=ca3ea893cf45d42ef60e74d0545d84f6 But when I want to list this ...
1
vote
3answers
847 views

ssh and cd into current directory

When I ssh into mycomputer from logincomputer, I would like to automatically cd into the current directory (the one from which the ssh command was executed) on mycomputer. In particular: > cd ...
1
vote
1answer
4k views

Unix zip: zip multiple folders in to one zip file without creating a top containing folder

I have a folder like this: -resources --graphics --sounds I want to zip graphics and sounds folder into a .zip file named resources.zip, which I will use zip -r resources.zip graphics/ sounds/ ...
1
vote
1answer
13k views

-bash: ls: command not found at Terminal on Mac OS X

I need to start using GIT for my projects from now on and I need to use some UNIX commands. but no matter what I do, I always receive "command not found" error. I installed MacPorts, but still cant ...
0
votes
0answers
51 views

Linux/Unix authentication via Active Directory across Networks?

I have two networks, one contains the Windows AD the other contains Unix/Linux clients of all kind. There is a Linux machine which has a NIC in both networks. I'd like to authenticate the unixoid ...
3
votes
2answers
1k views

How to get list of all child process spawned by a script

Context: Users provide me their custom scripts to run. These scripts can be of any sort like scripts to start multiple GUI programs, backend services. I have no control over how the scripts are ...
0
votes
2answers
55 views

date. hwclock keep showing wrongly everytime after reboot

Edited question to better reflect situation. (My hwclock and date is not showing correctly) I am on +GMT 8 and i have set my hwclock to localtimezone by doing the following rm /etc/adjtime ...
2
votes
3answers
62 views

What's the fatest way to calculate in command line?

Is there a faster way to calculate in command line the following: echo "4 * 5" | bc
0
votes
1answer
17 views

A Linux Distribution w/ Version which contains Sendmail version 8.6.9

I'm looking for Sendmail version 8.6.9. What distribution (I don't think that matters) or version of said distribution contains the old 8.6.9 version of sendmail. If I'm going about getting that ...
14
votes
9answers
6k views

Finding what's using all the space in *nix

Which sequence of commands will tell me which files are the largest starting from a particular directory, including all sub directories? I want to know where all the space went. Preferably just with ...
3
votes
1answer
3k views

Need to copy a file from unix box to windows folder using pscp command

I have a unix svr A: username: uname password: pwd then there are some files under /usr/local/jboss/configuration which are accessible only when a 'sudo su' command is performed. (and the username ...