*nix is shorthand for UNIX-like.
Questions tagged [nix]
19 questions
14
votes
6 answers
How to recursively move all files (including hidden) in a subfolder into a parent folder in *nix?
This is a bit of an embarrassing question, but I have to admit that this late in my career I still have questions about the mv command.
I frequently have this problem: I need to move all files recursively up one level. Let's say I have folder foo,…
deadprogrammer
- 1,661
- 7
- 24
- 25
5
votes
6 answers
TCP Sessions and IP Changes
What happens to a TCP session when the IP of a client changes?
I did a simple test of having netcat listen on a port, and connecting to that port from a client machine. I then changed the IP of the client while that nc session was open and sent…
Kyle Brandt
- 82,107
- 71
- 302
- 444
4
votes
4 answers
How can I determine how much memory a process is using in AIX?
How can I determine how much memory a process is using in AIX?
C. Ross
- 2,995
- 8
- 32
- 36
4
votes
3 answers
How to install Java JRE on FreeBSD with as few dependencies as possible
I've been trying to get Java working on my FreeBSD 7.1 server. I just want the runtime, since the JDK drags all kinds of unnecessary dependencies with it, and I just need it to run a jar file periodically. I've installed the FreeBSD-supported…
mikl
- 612
- 1
- 11
- 17
3
votes
1 answer
how to execute a bash script in nixos
I am trying to create a .nix file that installs nvm
First I tried to add inside configuration.nix :
system.activationScripts = {
dotfiles = pkgs.lib.stringAfters [ "users" ]
''
curl NVM_URL | bash
''
}
}
But it complained bash and…
Ant
- 193
- 1
- 9
3
votes
2 answers
Enable coloured PHP CLI messages on console
How to enable coloured messages for PHP CLI on console (Mac OS X, latest PHP/Apache from MacPorts)?
export CLICOLOR=1
export LSCOLORS=gxfxcxdxbxegedabagacad
doesn't seem to be enough, all PHP CLI produced output is colourless on the console. Would…
Ain
- 188
- 7
2
votes
1 answer
NixOps deployment on x86_64-darwin (vs. x86_64-linux)
We are having problems using NixOps from Mac OS X due to the different arch:
x86_64-darwin (vs.) x86_64-linux
We have a built-host setup according to this manual(s):
Nix installation https://nixos.org/nix/download.html
build-host setup…
qknight
- 161
- 5
2
votes
3 answers
*nix shell with IOS style completion?
Is there a Linux shell that will let you type less than full commands as you can with Cisco IOS, at least for the first command (and not its arguments)?
I haven't really thought enough if this is actually a good thing, but might be fun to play with…
Kyle Brandt
- 82,107
- 71
- 302
- 444
2
votes
1 answer
Windows Server 2012 DHCP and OSX Devices
I've recently put together a small office network (around 20 devices) with an attached machine running Windows Server 2012. Our gateway router provided by our ISP was pretty useless and started dropping connections once there were too many devices…
user3241130
- 21
- 2
2
votes
2 answers
*nix behavor, when overwriting a file that's open by another process using mv
Will the other process be able to finish reading the old file even though it's been replaced?
user533020
- 23
- 2
2
votes
2 answers
Copy File to Clipboard
Simple Question that I just realized would be very useful.
Under Linux (or really any 'nix environment) is it possible from the command line (or by other fashions, but primarily command line) to copy a file to the clipboard? Any example of this…
akdom
- 123
- 4
1
vote
1 answer
Directory alias vs variable in profile
What are the advantages of aliasing a directory (in my .profile) as opposed to setting a shell variable to it (and exporting of course).
alias MY_DIR=/usr/local/data/test/
vs
MY_DIR=/usr/local/data/test/
export MY_DIR
C. Ross
- 2,995
- 8
- 32
- 36
1
vote
2 answers
same shell environment in all accounts
What would be the best way to get the same shell environment (paths excluded) on all my accounts automatically?
What I want is something that transfers the aliases, coloring, and other cool shiznit I have going on in my shell to other shells when I…
d-_-b
- 1,104
- 3
- 11
- 23
1
vote
1 answer
Why are Nix programs not able to resolve mDNS names when native programs are?
My native programs (on Fedora) are able to resolve mDNS / Avahi / zeroconf names, like so:
$ ping felonyspork.local -c 1
PING felonyspork.local (192.168.88.169) 56(84) bytes of data.
64 bytes from 192.168.88.169 (192.168.88.169): icmp_seq=1 ttl=64…
Leonora Tindall
- 131
- 5
1
vote
1 answer
Read files from remote repository using nixOs
I am building a project using the nixOs package system.
I have a remote git repo containing different config files.
I want to access those files using nix, with out editing the remote repo.
The project would access the remote repo with a specific…
Mohamed Zouari
- 123
- 4