Questions tagged [unix]

Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

678 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
1k views

How do I install Nix on a custom directory?

I have been trying to follow the Nix wiki to install Nix on a custom path /scratch/gopinath/nix. The /nix path is not accessible to me due to the restrictions on the system provided by my university. ...
8
votes
1answer
1k views

sshfs: cannot set file timestamp

Using sshfs with autofs on Ubuntu, I cannot set timestamps on remote files: $ touch /sshfs/server/some/file touch: setting times of `/sshfs/sshfs/server/some/file': Permission denied I do have write ...
7
votes
0answers
1k views

Mutt using elinks to color html and external pager dilemma

These days more and more HTML emails are being unsed. Unfortunately making mutt render html in color via elinks works only partially due to the fact that the internal pager of mutt overwrites the ...
6
votes
1answer
3k views

Mutt error '/home/user/mail/ is not a mailbox', but configured for use with gmail imap/smtp

I have successfully configured mutt to work with gmail imap. But when i try to send mail via gmail smtp, i get this error: /home/user/Mail/ is not a mailbox I cannot understand why /home/user/Mail ...
6
votes
1answer
2k views

What's the convention for a directory to store unix domain sockets in?

On Ubuntu or *nix systems is there a convention to store Unix Domain Socket files in a specific directory? I've seen applications store it in /tmp, but I thought /tmp can get periodically cleared, no?
5
votes
0answers
1k views

ignoring No data available (61) errors with rsync

Is there a way to supress a warning where the prigin changes during the rsync? $ rsync --archive server::somemodule/ /dest/dir rsync: read errors mapping "/somefile" (in somemodule): No data ...
4
votes
1answer
1k views

How to plot column in unix in one line

I would like to plot a column of data output by a script in unix in just one line. For example, something like script | cut -f2 -d ',' | gnuplot ....
4
votes
1answer
3k views

dyld: Library not loaded: /usr/lib/libcurl.4.dylib curl SSL error

I'm not sure what happened to my system but I am having an issue with dyld/curl, affecting my overall computer performance. I am on Yosemite. I have a feeling it's the Conda openssl. How do I just ...
4
votes
3answers
5k 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 ...
4
votes
1answer
1k views

Why do strace/truss sometimes 'fix' stuck processes?

Sometimes you have a stuck process that's been stuck for a while, and as soon as you go to poke at it with strace/truss just to see what's going on, it gets magically unstuck and continues to run! So ...
3
votes
1answer
311 views

Is there a way to restart mac without reopen all apps via terminal?

I'm familiar with $ sudo shutdown -r now but I wonder is there a way to restart without reopen all apps?
3
votes
1answer
726 views

Error attaching volume to amazon ec2 instance

error attaching volume to ec2 instance. Error attaching volume: Value (/etc/sda1) for parameter device is invalid. /etc/sda1 is not a valid EBS device name. lsblk gives NAME MAJ:MIN RM SIZE RO TYPE ...
3
votes
1answer
723 views

inotify does run twice

I wanted to write a script that triggers some code when a file gets changed (meaning the content changes or the file gets overwritten by file with the same name) in a specific directory (or in a ...
3
votes
0answers
561 views

Add a new locale to OS X (/usr/share/locale)

I am trying to add a new locale support to my OS X system, which I could then use in Python scripts. It is Indonesian locale (id_ID) and I currently do not have it in my /usr/share/locales directory, ...
3
votes
1answer
2k 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 ...
3
votes
2answers
298 views

Trying to delete a directory stored on a Windows server, mounted on a Mac

I am trying to delete a directory stored on a Windows 2008 R2 server, mounted on a Mac as network home (10.8.5). The directory was created by Safari and stores temporary internet files. I need to be ...
3
votes
1answer
487 views

ag (the_silver_searcher) not searching entire file - does it have an implicit maximum input size?

I have a very large plain text file (multiple gigabytes in size) which I need to search for certain strings. When using grep, I get over 11,000 matches of a string but with ag I get roughly 1,500. The ...
3
votes
0answers
201 views

Retaining creation date with unison

Is there a way to retain creation dates using unison? I can preserve the modification times, but I also need creation dates. Edit: OS in use are BusyBox (EXT4) and OS X (Extended Journal)
3
votes
1answer
200 views

Is it possible to check which stream is used by the command? (bash)

I have an irritating problem: redirecting stderr does not work. I get: iptables: Chain already exists I can't be bothered to check if a chain exists already (pointless, iptables just throws an ...
3
votes
1answer
951 views

Add a window padding to guake

Text is too near the edge of the screen, I'd like to allow a small 10 pixel padding on all sides to comfort my eyes. Is this possible? I'm using guake.
3
votes
0answers
470 views

Clarification on signals (sighup), jobs, and the controlling terminal

So I've read two different perspectives and I'm trying to figure out which one is right. 1) Some sources online say that signals sent from the controlling terminal are ONLY sent to the foreground ...
3
votes
1answer
384 views

Run script when shutting down Ubuntu before the logged in user is logged out

I'm writing a script to backup some local directories on a Unix machine (Ubuntu) to a Samba drive. The script works fine and I've got it running at shutdown and restart using the method described at [...
3
votes
0answers
448 views

Converting csh or tsh scripts to Bash

I am looking for a tool that can convert scripts written in csh or tcsh to a bash scripts. At least on the basic stuff so that I don't have to go through the process of translating everything from ...
3
votes
1answer
1k views

Accessing files obscured by filesystem mounted at non-empty directory

I wish to mount a volume/filesystem at a non-empty directory, yet still retain access to the directory's contents. Is this possible? I know that a filesystem can be mounted at a non-empty directory ...
3
votes
1answer
1k views

Rsync: Only preserve meta (time, group, etc) on files and sub-directories, not root directory

I am copying some files (all except hidden ones) using rsync from one place to another using this command: rsync -Cav --delete --exclude=.* /Some/Directory/ other-host:/Other/Directory It works nice ...
2
votes
0answers
103 views

Stop rsync from deleting large amounts of data when disk accidentally umounted

I use rsync to mirror my hard drive onto a couple of devices with cron. The command is essentially this: rsync -avr --delete /home/username username@example.com:/home/username The problem I have is ...
2
votes
0answers
73 views

How can I set a unix binary as a default application in Mac OS High Sierra?

I want to configure mupdf to be my default PDF viewer in Mac OS, but it's a unix console executable located in /usr/local. The traditional "Open with" method does not work, as Finder will not allow ...
2
votes
0answers
524 views

Update Java version, Solaris 10

I'm trying to update Java version on Solaris 10. I have downloaded a tarball jre-8u73-solaris-x64.tar.gz. Using these commands: which java /usr/bin/java gzip -dc jre-8u73-solaris-x64.tar.gz | tar xf ...
2
votes
1answer
3k views

Zip recursive with excluding some directories

I would like to zip the directory but exclude some subdirectories. Let's say I have such structure: directory subdirectory 1 subdirectory 2 project 1 html directory 1 ...
2
votes
1answer
147 views

Is there a way to print filename with path from SFTP in Unix server?

I am trying to print file names along with path from SFTP server to other location. I am able to get file names but not path. Below is the code that I have used: echo "ls *.gpg" | sftp xfer@nsb.abc....
2
votes
0answers
346 views

Linux: “authconfig --update” in SuSE?

What is the equivalent SuSE command for authconfig --update redhat command Suse 11.* I could not find any command online to try it authconfig --update doesnot work
2
votes
2answers
58 views

How can I wget from a website that doesn't provide direct links?

I'm trying to download a large file from this website onto a remote server running CentOS. Usually, I simply right click the link, copy the address, then wget [address], but this website has weird ...
2
votes
0answers
700 views

Format external drive in single user mode mac os x

I am looking for suggestion to format external volume in Single User Mode. diskutil eraseDisk didn't work in such environment, so is there any possibility to format usb memory stick from Single User ...
2
votes
0answers
4k views

Dropped packets in all Linux and Unix

I have a problem. I have motherboard by Supermicro – X11SBA-LN4F. There are 4 ethernet ports. In first port i have internet. In second port i have my local network. When, i write "ifconfig" or "...
2
votes
1answer
402 views

Merge only new entries from one xml file to another

I have 2 xml files. The 2nd file has some new entries including same entries as that of the 1st file. Examples of the 2 files are given below. File 1 <SERVERNAME_ONE> <Protocol>...
2
votes
0answers
2k views

Using wine for window printer driver on Linux

We have some old printers with Windows drivers only at my work space. Is there any general way to use their drivers through wine? I have not found any decent and new documentation about the problem. ...
2
votes
0answers
692 views

Which X Window system is installed on my server that would work with Xming

I would like to use Xming to connect a server and managed to get it to work. I am now trying to get it to connect to a different server but i am not sure which X Window system is installed. I tried it ...
2
votes
0answers
276 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 ...
2
votes
0answers
906 views

Arch Linux Boot Halts on “Started Authorization Manager.”

I was using Arch Linux on my laptop, and during the shutdown procedures there was something making it wait and during that time my laptop ran out of batteries. Now when I try to boot it halts. This ...
2
votes
0answers
2k views

Can't login on server using ssh [Too many authentication failures]

I'm not able to login in the server. I keep getting this error: Received disconnect from 128.238.182.77: 2: Too many authentication failures for bmpasini It happened to me before and I solved by ...
2
votes
0answers
741 views

Can’t cd, ls, chown/mod or rm directory — Unknown error: 211 in Mac OS X

Never seen something like this in all my years. This is happening in Mac OS X: $ ls -lO@ea dr-xr-xr-x 2 root wheel - 1B Mar 20 23:10 Music/ $sudo cd Music/ cd:13: unknown error: 211:...
2
votes
1answer
728 views

recreating just the uid/gid unix permissions from tar

I was restoring a root partition based on a tar backup from system-rescue-cd. It went ok except the uid/gid mappings on the system-rescue-cd disk did not match the ones on this debian system that I ...
2
votes
0answers
214 views

How I can dynamically subset a ttf font?

Let's say I have a long text: Latebrae agente praefuit imperator nec praefuit ducens insidiarum sunt insidiarum emensis fatorum ubi milites rebus Noricorum viam sorte rebus suis emensis tristissima ...
2
votes
0answers
132 views

Windows 7, repetition of audio tick.wav, like those Unix guys can do, from other application.

At org-pomodoro_resources at master · lolownia_org-pomodoro · GitHub / resources, there is a tick.wav file, to be played repetitively, from Emacs. I have tried start, wmplayer, vlc, play (sox), and ...
2
votes
1answer
2k views

Tar without directory structure and exclude folders

I am trying to create a tar file [site.tar.gz] to exclude certain folders and without the parent directory structure: I am able to exclude folders, but when I extract, I see path from the root tar -...
2
votes
1answer
80 views

find using regexp and echo matches

I have about 50 users in /home/ directory and I have cloned a git repository to everyone: Executed at /home/ as root user: find . -maxdepth 1 -type d ! -name . -prune -exec git clone /shared/repos/...
2
votes
0answers
143 views

How can I create a CD or USB key that fully restores a Linux install? (a la the CDs that come with Windows boxen)

Whenever I assemble and configure a Linux PC for someone, I always run into the problem of what happens if they want to restore their system back to the way it was when they got it. Either they ...
2
votes
0answers
518 views

Cannot connect to local ip address OSX (Mavericks)

Here is the situation: I can ping and connect to localhost / 127.0.0.1 I can resolve hostname (dig / nslookup) I can ping my ip local ip address (10.63.66.185) and hostname from another machine I can ...
2
votes
0answers
2k views

chroot under Mac OS X

So I have googled a lot with different search terms, but didn't find anything usable, only that intead of ldd I have to use otool -L to see the used libraries of a programm. I tried to copy bash into ...
2
votes
1answer
69 views

Reordering file lines like other file (Unix)

Is there a tool (or option for sort) which will re-order lines of a file so that they are ordered like a key in another file? For example, I have a data file: T01F01475558 30 T01F022B3A17 31 ...

1
2 3 4 5
14