Tagged Questions

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
1answer
19 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
156 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
16 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
45 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
115 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
1answer
45 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 ...
2
votes
0answers
47 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
64 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
1answer
143 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
38 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
36 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
65 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
21 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
251 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
42 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
155 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
119 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
54 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 ...
0
votes
1answer
15 views

Move child folders into a different folder

I am new to UNIX, and I am trying to write a shell script that would move all folders that are older than a day in log archive directory into another folder. Below is the command I am using for doing ...
0
votes
1answer
23 views

less -S server.log (unix)

For a better understanding I prefer to read the logs with no wrap lines. In less I can get this with the -S option. The problem is that I can not select and copy rows that go beyond the right side ...
1
vote
2answers
35 views

batch rename multiple mp3's stripping leading digits

Hi could anyone help me? Im trying to strip leading digits from multiple mp3 files so "01 some_file.mp3" would become "some_file.mp3" if any one could show me how to doit with zmv that would be great
1
vote
1answer
58 views

Unix mail command: Sort by newest first

When I use the "mail" command, it prints a list of messages in my inbox in a format like this: 1 Super User Mon Jun 9 17:13 86/4716 Complete Registration With Stack Exchange However I've ...
-1
votes
2answers
73 views

If we have a collection of Linux computers on a LAN, how to write shell script to shutdown all computer [duplicate]

I have lab and in that ,collection of Linux computer are connected in LAN. i want how to writ e shell script to shut down all PC when we run that shell script.
0
votes
0answers
14 views

How can I activate the Front Panel in CDE?

We installed a new Solaris work station at work and most of them come with the Front Panel, however the latest did not. How can I activate it?
0
votes
2answers
80 views

Is there a unix command to output time elapsed during a command?

I love using time to find out how long a command took to execute but when dealing with commands that execute sub-commands internally (and provide output that allows you to tell when each of those ...
1
vote
2answers
431 views

Can files be recovered after a failed mv command?

I used mv * .. in Unix to move all contents of a directory to its parent folder. There was a folder called "Downloads" in both the current directory and the parent. The one in the parent was empty to ...
0
votes
0answers
35 views

Solaris - Inheriting by files the user's ownership of directory

I have a directory with ownersip like user:group. I want to make on it something like suid on group, but for user - all of new created files have a directory ownership. For example: drwxrwx--- 2 user ...
2
votes
1answer
37 views

Can I create a “symlink-esque” file to “merge” two files together?

I'm dealing with an application that reads a config file, config.yml, from the current directory. This config file contains both secret information (API keys) that shouldn't be checked in to source ...
0
votes
2answers
193 views

Is it better to check if file exists before deleting it

Sometimes when I want to delete a file (from within a script), I will just delete it rather than checking if it exists first. So I do this: $ rm "temp.txt" 2>/dev/null Instead of this: [ -f ...
0
votes
1answer
71 views

Windows 8 cannot access samba while other OS do

I found some related topic, but they do not answer my problem or weren't enough accurate. I have a samba on a ArchLinux machine (a rapberry), which can be accessed from Android and iOS apps but not ...
11
votes
5answers
973 views

How to jump back to the first character in *nix command line?

When writing a long command in the *nix command line and having to go back to the first character, in order to add something at the beginning (for instance a nohup, when you realize the process will ...
1
vote
2answers
151 views

CURL used in shell

I am executing a shell script in which one curl command is present. I have to store the output of curl command(xml format) in a file and display the result on screen. For this to happen "tee command" ...
0
votes
1answer
112 views

Delete file if number in filename less than xxxx

I have thousands files in format randomstring_XXXXXXXX.jpg where 'xxx' is unixtime (1388415305). Now I need to delete all files older than some (unixtime) date. Does anyone have a solution for this?
1
vote
3answers
135 views

What risks are there in stopping and resuming processes in Linux?

Let's say I stop a process using Ctrl+Z and resume it five hours later using fg. How risky is this with regards to the proper functioning of the process? For instance, imagine that vim is working on ...
0
votes
0answers
884 views

FTP: Connection Refused

I am trying to transfer files between a Linux PC to a Windows PC. I can ftp the Linux PC with localhost ftp localhost prompts for the username and password and the login is successful. But when ...
0
votes
3answers
67 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * ...
0
votes
0answers
31 views

How to temporarily disable rsh between machines for user only

First, please note that I am just a regular user. I cannot do anything as a super user. Our sysadmin has enabled rsh between machines in our local network. That is, I can do this: [user@machineA] ...
0
votes
0answers
52 views

Idle timeout Bourne-style shell

Is there any way to timeout idle users in Bourne-style shell (/bin/sh). man sh does not talk about it. http://www.freebsd.org/cgi/man.cgi?sh TIMEOUT or TMOUT shell env variables in /etc/profile ...
0
votes
2answers
51 views

How to find number of `_`-separated words?

I want to make a Unix command that reads a string and counts how many words it contains. In my case the words are separated by a _ (underscore) character, not spaces. For example, TABLE_PERSON ...
0
votes
1answer
52 views

Multiple copies of the same file as a result of make / make install

In a development project I'm involved in, we have some files in our src folder that don't need to be compiled (such as python files, a custom .bashrc script, etc...). Running make copies these to our ...
0
votes
2answers
271 views

Pass-through account login through WinSCP [duplicate]

I have a Linux server, where when I connect by PuTTY, I first need to log in using a non-root account (let's say user1), and then issue the command su root or su - root to log in to the root account. ...
0
votes
1answer
46 views

Unix : Avail Space of File mounts

Problem Statement This is regarding the space usage of file system mounted in Unix box df -h -> Gives the total usage/avail/used/used% of all mounts in unix server Is there any other way to ...
0
votes
2answers
158 views

Why my setting with NFS and setuid not working in Linux

I'm using Linux. On machine A I have such NFS setting in etc/exports: /home 10.0.129.130(rw,no_root_squash) I mount this directory on machine A on /home/nfs/ on machine B. And I've set setuid using ...
1
vote
0answers
194 views

(111)Connection refused: mod_fcgid: can't connect unix domain socket

I have a problem with one of my webservers. I have Apache and Nginx (like a proxy-reverse server). My Apache run with mod_fcgid for PHP5.3. All works fine, but only on a few requests show me this ...
1
vote
1answer
48 views

extract file content to mutliple files base on match pattern

I am new to unix. I would like to process this file. PP_NAME_1 jprovider|J Driver Provider|${J_DRIVER_PATH}/jcc;${J_DRIVER_PATH}/jcc_license_cu|${J_DRIVER_NATIVEPATH}|com.jcc.Connection ...
0
votes
0answers
37 views

set/modify environment variable for gnome/kde at runtime

Is there a way to modify or set environment variables in gnome or kde at runtime, ie. after logging in? I specifically need this for gnome, but knowing the kde method would be really useful too. If ...
0
votes
1answer
67 views

cursor ripple effect for screencasts and other useful action visibility tools

I was wondering whether someone could point me to any tools available for unix/windows/mac that enable useful screen cast options such as showing a circle that ripples out everytime a mouse click ...
0
votes
1answer
36 views

How do I quickly search through large ascii files with less?

I'm looking through some large log files (1-10 GB) and have been running into trouble using the standard less search functions (/). Searching for strings takes several minutes to find a match. I ...
1
vote
2answers
95 views

How do I unset (undo) unix set -C in zsh?

This works as expected $ echo "foo" > foo $ cat foo # foo $ echo "updated" > foo $ cat foo # updated From man set -C If set, bash does not overwrite an ...