Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Search this Thread
Old 05-05-2006, 10:45 PM   #1
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Rep: Reputation: 31
In a terminal window, How do you 'backup" to a previous file?

ok. I'm removing a file in a directory, and then the directory, and then want to back up to the current directory to delete that as well . . . . for instance: cd /usr/bin/sheep/bah/ . . . ok so here I am, but I want to get back to sheep (cause they are sexy!). how do I back up to /usr/bin/sheep . . . . withou redoing the whole thing.
Old 05-05-2006, 11:20 PM   #2
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
cd ..
".." is the parent directory.
Old 05-05-2006, 11:24 PM   #3
Registered: Dec 2005
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
or from /usr/bin type
rm -rf sheep
that will delete sheep and everything in it, without prompting, be careful when issuing that command, it can destroy filesystems if used incorrectly, but it can also do what you want very fast if you are careful.
Old 05-06-2006, 12:03 AM   #4
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Original Poster
Rep: Reputation: 31
Thank you ataraxia, that was what I was looking for. I knew the other command, but thankyou for responding anyway Stitchman
Old 05-06-2006, 11:28 AM   #5
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Rep: Reputation: 31
command has a lot of switches to make navagating through the terminal easy. If you wanted to go back to your last directory you'd use
cd -
it self takes you to your /home directory.
man cd
for a list of switches.

Last edited by Linux~Powered; 05-06-2006 at 11:29 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Type the character "d" in Terminal Window vkichu Linux - Newbie 4 05-03-2009 12:08 AM
K3b: - Howto re-dock "Directories" and "Contents" windows back into the main window? hagies Linux - Software 4 04-26-2006 08:38 AM
[SuSE] "Previous Segment Lost" ... JordanH Linux - Networking 0 06-01-2004 12:54 AM
TWM: cycle to next/previous window. robertmarkbram Linux - Software 0 05-03-2004 02:29 AM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration