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

43
votes
5answers
1k views

Choosing between .bashrc, .profile, .bash_profile, etc

This is embarrassing, but after many years of using POSIX systems full time, I still have a hard time figuring out if a shell customization should go in .bashrc, .profile, or somewhere else. Not to ...
1
vote
0answers
15 views

How do I delay tcp traffic on a socket?

I would like to test the interactions between a client program and a server program for race conditions. They connect to each other via tcp. The client does blocking calls to the server on multiple ...
0
votes
0answers
9 views

0711-317 ERROR: Undefined symbol

I am installing a C package named expat-2.1.0 in AIX 6.1 machine. While performing a gmake it popping the below output. /bin/sh ./libtool --silent --mode=compile gcc -std=gnu99 -I./lib -I. -g -O2 ...
1
vote
1answer
18 views

how to create ubuntu installable iso image from files

this might be a quite silly question but I lack linux knowlege so here it is... I have an ubuntu VPS from which I need to create a development environment under my WMWare. So I wonder if the ...
0
votes
2answers
32 views

How to ignore a specific SMART error

I get an email about the same SMART error every day. I'd like to configure the SMART daemon to ignore this specific error, but only this, since I still want to now if anything changes or gets worse. ...
0
votes
0answers
21 views

How to get the status of VGA device

Currently I am using vga2usb device for capturing output from the virtually any VGA source such as tab or any another monitor. If I connect this vga2usb device to my Ubuntu machine then we are ...
3
votes
3answers
40 views

Sed replace only in even numbered lines of a file when replace commands are written in a file

I have all the replace commands in a file (say replace.sed) and i use it with -f flag of sed (sed -f replace.sed InputFile). But now i ran into a condition where i need to apply these replace rules ...
2
votes
1answer
38 views

wc / cat command not found

I'm trying to run some simple bash script which uses wc and cat commands. The script fails with this: wc: command not found or this (after I commented string which uses wc): cat: command not found ...
0
votes
0answers
7 views

Configuring Apache with PHP-FPM, Apache failed to start

I followed this guide to configure PHP-FPM with Apache on my server but after I restart Apache successfully: [root@localhost vhost]# service httpd restart Stopping httpd: ...
0
votes
1answer
18 views

tar -czvf with no output file

Say you run tar -czvf some_folder_here and don't actually specify an output file, like tar -czvf some_output_file.tar some_folder_here. Where does the file go? I just ran this by accident, and the ...
0
votes
1answer
15 views

Solaris 11.1 x86 installing Weblogic 12.11

Ive been looking everywhere for a way to install Weblogic on Solaris. According to Oracle's documentation, all you need to install Weblogic Graphical Mode is Login on Unix Go to the directory that ...
1
vote
2answers
42 views

Retrieve secure copy in UNIX?

Is there a way to retrieve a secure copy in UNIX? Why would I need to do this? Because I can login to a remote machine from my local machine, but not the other way around. So I need to retrieve a ...
-1
votes
1answer
33 views

how to retrieve following error when i execute shell script

I have one script to log into remote server.But i tried to Execute the script some error occur. Logs: My script: #!/bin/bash S1=$(ssh -t selvam-odc-shell1 "users | wc -w ") S2=$(ssh -t ...
0
votes
0answers
11 views

-t, -T and/or -t -t options for ssh are not stopping stty errors

I've googled this error (which is a pretty common error) ad nauseam, but none of the solutions are working. Disabling pseudo-tty allocation nor forcing pseudo-tty allocation work for me. I always ...
1
vote
1answer
20 views

NetBIOS replying only to external requests

I have some IPs on the internal network I'm 100% sure have netbios enabled. (I say "internal network", but all the IP octets differ. It is just the same institution and geographical location). If I ...
2
votes
1answer
19 views

create a doskey like ~ in unix

I'm writing a small little BAT file that has the ability to create doskey's (alias) like those in Unix. for example: doskey cat=type $* doskey ..=cd.. I just want these BAT files so I can put them ...
-1
votes
1answer
23 views

I'm not able to access my remote machine without password

I am working on Free BSD and I need to connect to my remote machine without password. I tried the following but I can't log into the remote machine without password. Logs: ssh-keygen -t rsa scp ...
0
votes
3answers
23 views

How does UNIX know which private key to look for?

I have a public/private key pair. I put the contents of my public key into my server's .ssh/authorized_keys file. When I SSH into it, it automatically recognizes my key and lets me in. However, if I ...
-1
votes
1answer
20 views

Logging in to putty by sesu as superuser and running commands

I need to automate using a bat file where I need the following things to be done: log in to server using putty/plink sesu to super user run certain commands get the outpout in a text file I can ...
0
votes
2answers
39 views

Unable to SSH, cannot create /dev/null/.ssh

I am trying to deploy hadoop with a master and slave node. But the master fails to start tasttracker and datanode processes in slaves, as it is not able to ssh into slaves. The error message is 'Could ...
2
votes
0answers
44 views

Allow user to traverse path to given directory

Say, I want to give a user colleague read access to a directory /rather/long/path/to/the/directory, but not necessarily to its parent directories. As explained for example here and there, I first ...
0
votes
1answer
16 views

Sudo Mv Renaming Mess Up

Okay, first things first Mac OS Mavericks MacBook Pro. Now, I used sudo mv to rename my Desktop and user folder. NOT the folder actually called user, but my user within that (it was neomartinson). ...
0
votes
1answer
33 views

Keep only latest two folders in the directory

I have a directory which has the following folders. Data-2014-07-10-0240 Data-2014-07-10-0340 Data-2014-07-11-1232 Data-2014-07-12-0530 Data-2014-07-13-1210 I want to keep only latest two folders ...
2
votes
1answer
42 views

sed, insert file before last line

The following inserting file method for sed used to be working, even before last line, but not any more. Is it a bug in the current sed? Demo of inserting file method with sed: mkdir /tmp/test ...
0
votes
1answer
83 views

All steps to set up and resolve subdomain.localhost to 127.0.0.1?

I suddenly feel stubborn about my subdomain on localhost not working. My /etc/hosts file looks like this: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 ...
0
votes
1answer
34 views

Can I restore a Unix server by copypasting system directories from a backup?

I messed up a Ubuntu server with lots of installed binaries, settings, etc. I'm going to have to reinstall Ubuntu, but I have a complete backup, hidden files and all, though not bootable. I'm hoping ...
0
votes
0answers
45 views

Can't build using MacPorts in OS X

I've submitted a ticket here, but I am pretty pessimistic it'll be addressed. As I say, there, I'm running MacPorts 2.3.1 on OS X 10.9.3. In trying to install llvm-3.2, I get the following error: ...
3
votes
1answer
28 views

Using pv(1) to limit rsync speed

I'm trying to use pv rather than rsync's builtin --bwlimit to limit the bandwidth of an rsync transfer because --bwlimit is implemented in an eventually-consistent way, and my transfers are so short ...
0
votes
1answer
15 views

Escape brackets when using SED

I would like to replace the value varchar(36) with char(36) in a file by using sed. I am trying with sed -i ’s/varchar(36)/char(6)/g’ calls_contacts.sql But the command does not execute. What am I ...
0
votes
0answers
15 views

How to query mssql db from bash on subsystem for unix

I have a script that is used to query a database and use the result set for further processing. This is a shell script that runs on bash. But the bash used is the one shipped in subsystem for Unix for ...
2
votes
1answer
13 views

df -h Size - User != Avail

When I run df -h I get the following Filesystem Size Used Avail Use% Mounted on /dev/sda3 809G 753G 14G 99% / But Size - Used is not even close to Avail (809-753 = 56 ...
1
vote
1answer
13 views

tmux: close session while open

I am using tmux to manage multiple terminal windows. Currently I have 2 windows open with multiple panes. How can I close the session from inside of tmux. I know that I have to use the prefix (for me ...
1
vote
1answer
15 views

Binary file on Linux machine looking for libraries in /lib by default

On my UNIX machine I observed that the binaries are looking for the dependent shared libraries in '/lib' directory by default even though the '/lib' directory is not configured in 'PATH' and ...
0
votes
1answer
21 views

Switch from ZSH to default OS X

http://stackoverflow.com/questions/13476232/make-iterm2-launch-with-zsh I used chsh -s /bin/zsh as described above to set zsh as default. I'd like to switch back to default standard terminal that ...
0
votes
2answers
32 views

Mac addresses of devices on network

I'm on OSX Mavericks. I'm connected via wifi to my network. How can I find the mac addresses of all other devices on the network?
0
votes
0answers
8 views

Fail all login attempts from an IP address or IP range [duplicate]

I am noticing a large number of failed login attempts from a range of IP addresses (starting with 117.) How can I automatically fail all login attempts from this range?
0
votes
0answers
10 views

Homebrew App Not Using Python Package

I installed duply using Homebrew and tried to create a backup to Google Drive. Doing so results in the following error: BackendException: Google Docs backend requires Google Data APIs Python ...
0
votes
0answers
14 views

How can I browse through Homebrew's formulae according to popularity (# downloads all time)?

Though I can easily find an alphabetical list of all available formulae, there seems to be no resource online, including at Brew's Github, or seemingly anywhere where I'm able to browse through ...
1
vote
3answers
43 views

Is there anything grep does better than ack? [closed]

I started using ack a while ago and it's amazing, but still begs the question: Is there anything grep still does better than ack? Or maybe is there something grep does that ack can't do?
0
votes
0answers
27 views

How to install Haskell platform on Kali Linux?

I'm new to Linux and I want to install Haskell platform on my Kali Linux system, but unfortunately I can't do it alone.So I really need your help. Also, if possible explain me how to do it step by ...
0
votes
1answer
38 views

Is GNU Hurd using the same principles as Minix 3 for self healing?

Minix3 has a reincarnation server that can restart drivers if they crash or end up in a infinitive loop. It can even restart the disk driver by keeping a shadow copy of the same or an older version of ...
1
vote
1answer
22 views

realpath (GNU coreutils 8.22) does resolve “.” symlink regardless of “-s”

I'm trying to use realpath in a script which has to ensure that it is located under a certain (possibly symlinked) path. Also the script has to be runnable from any location, so it cannot presume that ...
1
vote
2answers
35 views

Jump in vim on same line

I have log files of format 'date' 'filename' 'something 'return status' Often status goes beyond my screen. While I am reading 'something' I press End to see status and Home to see filename. But ...
1
vote
2answers
56 views

Does Windows still copy each file directly to disk, unlike Unix?

Unix was originally designed to perform file system operations in memory, and to update the disk blocks only every 30 seconds during sync. This resulted in a much faster user experience than MSDOS ...
0
votes
1answer
13 views

how do I display a chapter in the man?

use the man command to find a command to determine a file type. The man command with the -k keyword option will display all commands. I want you to display only commands in chapter 1 of the Unix man ...
0
votes
2answers
27 views

“Less” prompts for “binary file” display when colors in output

We've recently enabled colouring the log files of a few services, I believe we use ANSI escape sequences for that. Looks like this: [2014-06-12 10:56:43,214] [main] [VOID] ESC[34mINFO ESC[0;39m ...
1
vote
1answer
22 views

How to get tree -a to ignore .git directories?

I love using tree to list directories, and I have a git repository with all my dotfiles. For me to be able to see them I need to do tree -a, but that will also list the contents inside the .git ...
0
votes
1answer
29 views

sql query not working in unix shell script

I am using shell variable in sql statement and that variable is string type.If I execute the below script I am getting output as 'no rows selected' but when I execute same select query in sql prompt ...
0
votes
2answers
35 views

using url with Putty to access Unix server

I need to access UNIX server from my windows machine and will be using PUTTY. Can I access the UNIX server with the url rather than direct IP address? I am getting error that host cannot be found ...
0
votes
1answer
20 views

how to get the status of commands executed inside ssh connection

I have an ssh connection where I am running 2 commands. I want to know the status of each command after execution. the code is like below: ssh $username@$server -t <<'XXX' command 1 command ...