Unix & Linux Weekly Newsletter
Unix & Linux Weekly Newsletter

Top new questions this week:

What does it mean to be "sh compatible"?

I've seen the phrase "sh compatible" used usually in reference to shells. I'm not sure if it also applies to the programs that might be run from within shells. What does it mean for a shell or other …

/ shell / compatibility  
asked by Praxeolitic 12 votes
answered by Warren Young 20 votes

Comparing two strings in Bash

I have the following if block in my bash script: if [ ${PACKAGENAME} -eq kakadu-v6_4-00902C ]; then echo "successfully entered if block!!" fi The script execution is not entering my if block even …

/ bash / shell-script / test  
asked by DemiSheep 11 votes
answered by polym 16 votes

How to make user passwords shown as a clear text in Linux?

We know that users' passwords are saved in /etc/passwd, but in an encrypted way, so even the root can't see them: jane:x:501:501::/home/jane:/bin/bash fred:x:502:502::/home/fred:/bin/bash As shown …

/ password  
asked by user78050 11 votes
answered by derobert 37 votes

Where is bash's history stored?

If I run history, I can see my latest executed commands. But if I do tail -f $HISTFILE or tail -f ~/.bash_history, they do not get listed. Does the file get locked, is there a temporary location or …

/ bash / command-history  
asked by Adionditsak 11 votes
answered by Michael Homer 21 votes

Difference between sdX and vdX

When I use Ubuntu and CentOS, I see /dev/sda and /dev/vda. So I can't understand what is the different between above two?

/ udev  
asked by Supun Rathnayake 10 votes
answered by derobert 8 votes

Recursively create directories for all letters

I want to create a directory in such a way that I need to label the directories from a to z. Inside each of these directories, I need to create sub-directories so that they are labelled as aa, ab etc. …

/ shell-script / mkdir  
asked by Ramesh 9 votes
answered by Michael Homer 14 votes

Strange difference between pwd and /bin/pwd

I added a symlink to the current directory with ln -s . aa. If I execute cd aa, and after that I executed pwd, the response is /home/sim/aa. But if I execute /bin/pwd it prints /home/sim (the current …

/ shell / symlink / pwd  
asked by user3581976 9 votes
answered by Gnouc 12 votes

Greatest hits from previous weeks:

Turn off buffering in pipe

I have a script which calls two commands: long_running_command | print_progress The long_running_command prints a progress but I'm unhappy with it. I'm using print_progress to make it more nice …

/ shell / pipe  
asked by Aaron Digulla 94 votes
answered by cheduardo 67 votes

How do I know if dd is still working?

I've not used dd all that much, but so far it's not failed me yet. Right now, I've had a dd going for over 12 hours - I'm writing an image back to the disk it came from - and I'm getting a little …

/ osx / hard-disk / dd / file-transfer  
asked by kivetros 45 votes
answered by Caleb 65 votes

Can you answer these?

Cannot connect to ssh server

I am having trouble connecting to my ssh server. It responds with a lengthy error message about no network etc. but it is the last message that concerns me: Sometimes, such troubles can be caused …

/ ssh / security / plesk  
asked by user1532468 2 votes

Why does mencoder output still images if I try to encode them under 3 FPS, while mencoder outputs dynamic images if I output them at 3 FPS or over?

If I try... mencoder mf://@NetSWLW12MA.txt -mf w=800:h=600:fps=1.5:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o NetSWLW12MA2.avi I just get a bunch of still images of the …

/ mencoder  
asked by InquilineKea 2 votes

windows 7 reinstallation killed grub

I have been running dual boot windows7/ubuntu. Recently I reinstalled windows 7, and I no longer have the option to boot to ubuntu. I would like to be able to get my dual boot working again or at …

/ ubuntu / boot / grub  
asked by Ivan Viti 3 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