PCLinuxOS-Forums
News: Wishing everyone a Happy 2012
 
*
Welcome, Guest. Please login or register. February 12, 2012, 10:31:12 AM


Login with username, password and session length


Pages: 1 2 3 [4] 5 6 7 8 9 10 11 ... 37   Go Down
  Print  
Author Topic: Forum Foibles  (Read 40910 times)
Linuxera
Hero Member
*****
Offline Offline

Posts: 6589


Naughty_Boy slayer!!


WWW
« Reply #45 on: January 14, 2010, 05:56:19 AM »



So......how is everyone doing with their resolutions?
Mine was to use some console commands. I did pretty well with the ls and mkdir. And I can move around....cd....without too much trouble.  Then I tried cp and I lost a file.  Angry Sad Cry  I have no idea where it is. It's just gone.

Well, it seems to me if you weren't exactly specific about what you were copying or where you were copying to, then nothing happened and that's why you can't find it. As long as you stay away from rm you should be okay.  Oh, try looking in the root folder too.  I've had things pop up there a time or two... lol Grin Grin
Logged

The "Exquisite E17 Bunch Club" is to PCLinuxOS what the "Buena Vista Social Club" is to Cuban Son.  Smiley
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6893


MLU


« Reply #46 on: January 14, 2010, 06:10:38 AM »


  Then I tried cp and I lost a file.  Angry Sad Cry  I have no idea where it is. It's just gone.

Try another command to find it  ......  locate       Grin 
Logged
ms_meme
Hero Member
*****
Offline Offline

Posts: 2496


« Reply #47 on: January 14, 2010, 08:08:26 AM »


Well, it seems to me if you weren't exactly specific about what you were copying or where you were copying to, then nothing happened and that's why you can't find it. As long as you stay away from rm you should be okay.  Oh, try looking in the root folder too.  I've had things pop up there a time or two... lol Grin Grin

No, I didn't use the mv command.  That was the next lesson.  Tongue The thing is the cp command worked when I applied it to the practice folder/files I made.  Then when I applied it to something important..poof.  Cry
If Root wants that file...he is welcome to it.  Wink




Try another command to find it  ......  locate       Grin 


I did try the locate command as you suggested and I found a file with that name. The only problem was it was not the file I lost.  I must have named 2 different files in 2 different places the same name.

I seem to recall something about.....the console keeps a record of all the back commands???  If so how do I access that record?  I would really like to see what I did....so I don't do it again.  Grin I was using the terminal that appears Window/Show Terminal Emulator.  I was following a tutorial and wanted to be sure I could see what I was doing........... Roll Eyes
Or I could just go back and start the tutorial all over again which would mean I would have to extend my resolution past the 4 week commitment.  Angry

Logged
7272andy
Hero Member
*****
Offline Offline

Posts: 1290


Bath - UK


« Reply #48 on: January 14, 2010, 08:19:14 AM »

ms_meme,
just use the up and down arrows on your keyboard to review the previously typed commands.

Andy
Logged

ms_meme
Hero Member
*****
Offline Offline

Posts: 2496


« Reply #49 on: January 14, 2010, 08:35:59 AM »

ms_meme,
just use the up and down arrows on your keyboard to review the previously typed commands.

Andy

Yes, thank you.  I do see the previous commands...all written in Greek... Grin  But they appear only one at a time.  Is there a way to see them in a sequence of more than 1 at a time? 

Don't mean to turn this topic into a How To.  Tongue   At least I am fulfilling my resolution and learning some new command stuff.  Cheesy
Logged
ms_meme
Hero Member
*****
Offline Offline

Posts: 2496


« Reply #50 on: January 14, 2010, 08:44:55 AM »

I FOUND IT!! I FOUND IT!!!!!!!!!!!!  The missing file!!!

Now to figure out what I did...right or wrong.  Tongue
Logged
Mike
Hero Member
*****
Offline Offline

Posts: 6593


"I chose Life"


« Reply #51 on: January 14, 2010, 09:08:36 AM »

Hoo Ray, now stop yelling!  Grin Grin Grin Grin Grin Grin Grin Grin Grin Grin (kidding)
Logged

Nearly all men can stand adversity,
but if you want to test a man's character,
give him power.

~Abraham Lincoln~


"PCLinuxOS "   Joe Gable, "Joble"  was my  "Friend"        Linux Counter #288984
7272andy
Hero Member
*****
Offline Offline

Posts: 1290


Bath - UK


« Reply #52 on: January 14, 2010, 09:20:08 AM »

ms_meme,
just use the up and down arrows on your keyboard to review the previously typed commands.

Andy

Yes, thank you.  I do see the previous commands...all written in Greek... Grin  But they appear only one at a time.  Is there a way to see them in a sequence of more than 1 at a time? 

Don't mean to turn this topic into a How To.  Tongue   At least I am fulfilling my resolution and learning some new command stuff.  Cheesy
There is a hidden file in your Home directory called .bash_history, if you open that you will see all the commands you have typed in your various console sessions.

At least you've found your file now, I could hear you from the Sandbox  Cheesy
Logged

ms_meme
Hero Member
*****
Offline Offline

Posts: 2496


« Reply #53 on: January 14, 2010, 09:41:12 AM »

I looked at rpm packaging and I think maybe this decade, if I'm fortune enough...need to learn too many other things first...
Well I'm starting..... Wink Grin Grin Grin Grin Grin Grin

IF and WHEN you finally learn something..........we will expect just a little whisper!!  Just kidding.   Grin Grin Grin

Hoo Ray, now stop yelling!  Grin Grin Grin Grin Grin Grin Grin Grin Grin Grin (kidding)
That's what my husband said too.  Wink

I looked in the bash history.  It seems that mv also can rename a file.  Haven't figured out the rest but learned not to play with the important stuff.  Sad 

Here is the sequence....not that anybody cares... Roll Eyes

mv mandala.jpg mandala2.jpg
mv mandala2.jpg Videos
cd Videos/
ls
mv mandala2.jpg home



the mandala  changed to mandala2....then got moved to the video folder.....then got changed to be named 'home'  Grin

I think what I was trying to do was move the mandals2 file back into my home file and I didn't know how and then lost the file.


But that was yesterday....and I really can't be sure of anything I was trying to do yesterday.  Sad
Logged
7272andy
Hero Member
*****
Offline Offline

Posts: 1290


Bath - UK


« Reply #54 on: January 14, 2010, 09:58:09 AM »

The last line should have read either;

     mv mandala2.jpg $HOME

or

     mv mandala2.jpg ~

either command will give the same result
Logged

Mike
Hero Member
*****
Offline Offline

Posts: 6593


"I chose Life"


« Reply #55 on: January 14, 2010, 11:38:48 AM »

I think that is actually referred to as a "Oops"  Grin Grin Grin Wink
Logged

Nearly all men can stand adversity,
but if you want to test a man's character,
give him power.

~Abraham Lincoln~


"PCLinuxOS "   Joe Gable, "Joble"  was my  "Friend"        Linux Counter #288984
pags
Hero Member
*****
Offline Offline

Posts: 1666


Keep it clean.


« Reply #56 on: January 14, 2010, 02:02:05 PM »

ms_meme,
just use the up and down arrows on your keyboard to review the previously typed commands.

Andy

Yes, thank you.  I do see the previous commands...all written in Greek... Grin  But they appear only one at a time.  Is there a way to see them in a sequence of more than 1 at a time? 

Don't mean to turn this topic into a How To.  Tongue   At least I am fulfilling my resolution and learning some new command stuff.  Cheesy
There is a hidden file in your Home directory called .bash_history, if you open that you will see all the commands you have typed in your various console sessions.

At least you've found your file now, I could hear you from the Sandbox  Cheesy

You can also type:
Code:
history
at your command prompt, and it will list your history, with line numbers to the left of each command.  You can use:
Code:
!###
where ### = the line number of the command, and it will be executed as if you typed (or arrowed up to) the whole line again.

So, for instance:
Quote
[jpaglia@core2pclinuxos ~]$ history
  ...
  993  nano -w Documents/Samuel/InfoHR/TSUsers.txt
  994  glxinfo | grep render
  995  glxgears 996  exit
  997  rdesktop-vrdp 172.23.62.51 -z
  998  exit
  999  history
[jpaglia@core2pclinuxos ~]$!994
glxinfo | grep render
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa GLX Indirect
[jpaglia@core2pclinuxos ~]$

I know...ignore the fact that DRI not enable!  Wink Cheesy Cheesy
Logged
ms_meme
Hero Member
*****
Offline Offline

Posts: 2496


« Reply #57 on: January 15, 2010, 06:54:49 AM »




Remember those little colored hearts
That you used to give in school
They said all kinds of lovey stuff
You thought they were so cool

Now here's your opportunity
To show PCLOS you really care
Think of a little saying
And on a heart...I'll put it there

Now don't forget to do this
Don't put it on the shelf
Because if there are no love notes
I'll just have to do 'em myself
 Tongue


Here's the plan for the Forum Foibles section of the PCLinuxOS Magazine.

Think of a tiny silly saying..Linux, PCLOS or computer inspired. It must be short enough for me to get it on a little valentine heart. You can post your suggestions here.
A couple of examples to give you an idea of what I mean.

          

If the Editor-in-Chief approves your message, you will see it in the February magazine.  Kiss
Logged
parnote
Hero Member
*****
Offline Offline

Posts: 3707


The truth is out there ... PCLinuxOS!


« Reply #58 on: January 15, 2010, 08:53:51 AM »

PCLOS
ROCKS!
Logged

PCLinuxOS Magazine Chief Editor

Linux Registered User #485009

In a world without walls, who needs Windows?

PCLinuxOS Wiki: Contribute tips/tricks/how-to's!
Mike
Hero Member
*****
Offline Offline

Posts: 6593


"I chose Life"


« Reply #59 on: January 15, 2010, 09:23:41 AM »

PCLOS
#1
Logged

Nearly all men can stand adversity,
but if you want to test a man's character,
give him power.

~Abraham Lincoln~


"PCLinuxOS "   Joe Gable, "Joble"  was my  "Friend"        Linux Counter #288984
Pages: 1 2 3 [4] 5 6 7 8 9 10 11 ... 37   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM