Unix & Linux Weekly Newsletter
Unix & Linux Weekly Newsletter

Top new questions this week:

How can I propagate my SSH pub key to a list of servers without having to type my password in over and over?

I was recently given username/password access to a list of servers and want to propagate my SSH public key to these servers, so that I can login more easily. So that it's clear: There is not any ...

/ shell-script / ssh / scripting  
asked by slm 16 votes
answered by slm 19 votes

Prepare answers for questions of a command

Let's say I want to write a shell script that executes just one command. But this command is poorly designed. It doesn't offer any command line options; instead it asks some questions and waits for ...

/ shell / shell-script  
asked by tmuecksch 14 votes
answered by Bjorn Munch 14 votes

Why is nullglob not default?

In most shells nullglob isn't the default. That means, for example, if you run this command ls * in an empty directory, it will expand the *-glob to a literal ' * ', instead to an empty list of ...

/ shell / wildcards  
asked by Dakkaron 9 votes
answered by Stéphane Chazelas 7 votes

How can I partially copy a file from a broken disk?

I have a broken disk where I need to copy a 60G file from. From time to time the disk resets and I can't finish the copy. I would like to try and copy partial slices and put them all together. How ...

/ hard-disk / file-copy  
asked by nsn 8 votes
answered by roaima 11 votes

Why xterm displays 256 colors (not xterm-256color)?

Could someone explain this? I'm using gnome-terminal. First, some information: # echo $TERM xterm # infocmp xterm Reconstructed via infocmp from file: /lib/terminfo/x/xterm colors#8, cols#80, it#8, ...

/ gnome-terminal / xterm  
asked by kmwil 7 votes
answered by G-Man 11 votes

cp says it's removing files, but shouldn't be

Making a quick backup: root@guilmon:/mnt/backup/guilmon/home# cp -uvfrx --preserve=all /home/rena/ . The output is surprising - some files are said to be removed! removed ...

/ backup / cp  
asked by Rena 7 votes
answered by Stephen Kitt 11 votes

how to check what is in swap?

On my system i have some amount of swap used: undefine@uml:~$ free total used free shared buffers cached Mem: 16109684 15848264 261420 633496 ...

/ linux / swap  
asked by undefine 7 votes
answered by shivams 5 votes

Greatest hits from previous weeks:

Create file in folder: permission denied

I'm a newbie in the GNU/Linux-Ubuntu world. I have a problem copying files to a directory on Ubuntu 12.04. I create a directory in the home directory so that the path where I want to copy to is: ...

/ chmod / chown  
asked by Melkhiah66 6 votes
answered by Maythux 9 votes

How to permanently set environmental variables

My variables are LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib ORACLE_HOME=/usr/lib/oracle/11.2/client64 How to save these variables permanently ?

/ environment-variables  
asked by user3021349 23 votes
answered by Kiwy 34 votes

Can you answer these?

Is it possible to make an exec call that "returns"?

Is there a way to make the exec system call work like a function call that returns instead of totally replacing the current process image? My motivation is trying to integrate two shells with ...

/ process / environment-variables / exec  
asked by hugomg 4 votes

How to use same library more than once in Name Service Switch (NSS)

Is there any generic solution to use a single NSS library two (or more) times? In my case I have two LDAP servers, one local on the machine itself and one remote. I need to make NSS work with both of ...

/ nsswitch  
asked by Adam Badura 6 votes

What to do when "nice" isn't good enough (FreeBSD)

I've been using x265 to encode some video on my workstation lately, but I have a problem: even though I launch it using nice -n 20 x265 to deprioritize it, it still slows the computer to a crawl while ...

/ process / freebsd  
asked by Brandon Thomson 5 votes
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3