simple bash stuff
Apologies if this is not the right place!
Trying to force myself to use/learn cli more I decided to put all of my downloaded *.pdf files in their own dir. Instead of drag/drop in Konqueror, I decided to try in a konsole. So after a couple of bashes(!) I started thus:
stephen@linux-oqc9:~> md linux_tips
and then ls, all fine, new dir exists.
Then:
stephen@linux-oqc9:~> mv Documents/*.pdf linux_tips
and:
stephen@linux-oqc9:~> ls linux_tips
The "right" result, ie:
monitor.pdf wallchart.pdf zypper_cheat_sheet_p1_letter.pdf zypper_cheat_sheet_p2_letter.pdf
UserManual.pdf zypper_cheat_sheet_p1_a4.pdf zypper_cheat_sheet_p2_a4.pdf
So, then;,
stephen@linux-oqc9:~> kpdf linux_tips/zypper_cheat_sheet_p1_a4.pdf
and to my surprise, kpdf opened with the chosen document. I treated myself to a celebration cup of tea, and decided to track down any other *.pdf I have hiding away in my ~/
So;
stephen@linux-oqc9:~> locate ~/*.pdf
The result???
/home/stephen/Documents/monitor.pdf
/home/stephen/Documents/UserManual.pdf
/home/stephen/Documents/wallchart.pdf
/home/stephen/Documents/zypper_cheat_sheet_p1_a4.pdf
/home/stephen/Documents/zypper_cheat_sheet_p1_letter.pdf
/home/stephen/Documents/zypper_cheat_sheet_p2_a4.pdf
/home/stephen/Documents/zypper_cheat_sheet_p2_letter.pdf
/home/stephen/linux_starter_pack/linux_starter_pack.pdf
Now these files are showing that they are in their ORIGINAL locations!!!!
I went back to Konqueror, and the files are indeed in the new dir. Why does locate see them as still being in "Documents"? Also I have manually in Konq. found other *.pdf docs in ~/Desktop/DeskDocs, why did locate not find them?
__________________
Currently trying 11.2/kde4/2.6.31.5-0.1/nvidia 190.42
11.1: kernel 2.6.27.29-0.1-pae: kde 3.5.10: nVidia driver 180.51: Compiz 0.8.2 Single core Athlon, 2Gb RAM, nVidia 6150SE
|