Mike Diehn
  • Member for 10 years
  • Last seen more than a week ago
2 answers
2 votes
4k views
NVIDIA drivers installed, but nvidia-smi not working on CentOS
1 votes

I run an HPC cluster at work and we have the cuda-driver RPM installed. It provides nvidia-smi, but its in the $INSTALL_ROOT/libs/440.64.00/bin directory. $INSTALL_ROOT might vary from system to ...

View answer
2 answers
77 votes
94k views
What do square brackets mean without the "if" on the left?
34 votes

Ooohh, one of my favorite topics!! Square brackets are a synonym for the "test" command. If you read the test man page, you'll see that you can invoke the test command as either test -r /etc/...

View answer
4 answers
5 votes
753 views
Protecting access to NFS shares in Docker
1 votes

If the user can get root in the container and can see the other users' files, there really isn't anything you can do to prevent them altering those files. So you must prevent that happening: either ...

View answer
1 answers
3 votes
725 views
Connected using screen over RS-232. How do I transfer a file to my local system?
1 votes

Seret! Let's see if I can help. I'm thinking in your shoes, I'd look to see if the remote system has the "tar" and "base64" or "uuencode" programs installed. If so, I'd start a fresh terminal on my ...

View answer
3 answers
4 votes
3k views
Use default application as file thumbnail in Mint's file browser
1 votes

I'm going to guess that you are seeing "previews" instead of icons. Nemo has three views: icon view, list view, and compact view. By default, in the icon and list views, for files on your local disk,...

View answer
1 answers
0 votes
1k views
How to loop through variables
Accepted answer
1 votes

Note, I'm using bash, not csh, because I don't hate myself. But you can do all this in csh, you'd just have to translate. If you want to work in bash instead, simply run "bash --login" first and then ...

View answer
3 answers
0 votes
47 views
Assigning files key words to easily find them later
0 votes

ctags can probably help you with this. It was created to index computer source code files and make it easy to locate a function or routine with needing to know exactly which file contains it or where ...

View answer
4 answers
9 votes
2k views
Are there terminal emulators that support bi-directional text?
Accepted answer
8 votes

I haven't used it as I don't speak Arabic, but this gets decent reviews: http://mlterm.sourceforge.net/ See also: A Quick Primer on Unicode and Software Internationalization under Linux and Unix.

View answer
3 answers
2 votes
977 views
How do I find out which RPM was used to install PHP?
1 votes

Like this: [root@jimmy ~]# which php /usr/bin/php [root@jimmy ~]# rpm -qf /usr/bin/php php-cli-5.3.1-1.el5.remi [root@jimmy ~]# Then if you want to know more about the package, use "rpm -qi php" ...

View answer
1 answers
2 votes
5k views
How do I print the process name next to the process ID number in a file?
Accepted answer
3 votes

I opened a shell and typed "man ps" and then foudn the SEE ALSO section. Here's what it is on my Mint 14 system: SEE ALSO pgrep(1), pstree(1), top(1), proc(5). Your instructions say to pick ...

View answer
1 answers
16 votes
26k views
quotas not linked to users but to directories
Accepted answer
6 votes

Same question asked and answered over here: https://stackoverflow.com/questions/8148715/how-to-set-limit-on-directory-size-in-linux basically, make a virtual filesystem by filling a file with zeros ...

View answer
1 answers
3 votes
110 views
Per executable UDP port redirection possible?
1 votes

If you can tell the black-box program to listen only on a specific IP address, you could bind it to an arbitrary loopback address, like 127.0.0.10, and then use netcat, AKA, nc, to pipe between the ...

View answer
2 answers
11 votes
6k views
FreeBSD: "Too many open files" but should be able to open another 160,000 files
1 votes

Check /etc/login.conf and figure out which login class your mysql user assigned to. It's probably default or daemon. If you want to alter the limits for your user, create a new class, assign your ...

View answer
4 answers
3 votes
36k views
TFTP configuration problems
2 votes

I've had to deal with this myself a few times recently and these are the questions I've asked myself to trouble shoot: is tftpd run from xinetd or as an independent daemon? do you need to alter /etc/...

View answer
3 answers
3 votes
361 views
What is the language that appears on the first line of a script?
2 votes

Called the shebang, as Ignacio said, it's actually a bit of magic for the program loader in the OS. When a user attempts to execute a program, the loader reads the first two bytes of the program to ...

View answer
6 answers
15 votes
11k views
A better paste command
4 votes

I thought awk might do it nicely, so I googled "awk reading input from two files" and found an article on stackoverflow to use as a starting point. First is the condensed version, then fully ...

View answer
4 answers
9 votes
4k views
Where to put scripts that run when computer is resumed?
1 votes

You're trying to create your own hook, right? I'm reading the Arch Linux documentation on pm-utils (link below) and I'd check these things first: script name (start with two digits, obeying the ...

View answer
2 answers
10 votes
12k views
What does exec $SHELL -l do?
10 votes

The exec command replaces the current process image - the executable or program - with a new one, named as the argument to exec. If $SHELL contains the name of an executable, as it usually does, exec ...

View answer