LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2004, 03:08 AM   #1
Skills
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Rep: Reputation: 0
Linux commands


If I have a file with the name: -x
How can i the use the "mv" command to change the name to: x.txt
I know its not a smart thing to save it as -x, but I need to find it out.

Thanks for any help.
 
Old 08-25-2004, 03:18 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
mv -- -x iwontdothatagain.txt
 
Old 08-25-2004, 03:24 AM   #3
Skills
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Wink

Hehe.
Thanks
 
  


Reply



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
linux commands zexter Linux - Newbie 5 11-04-2004 02:37 PM
linux commands help kyborg Linux - Newbie 4 09-28-2004 01:31 AM
Linux commands Delmarc Linux - Newbie 9 10-22-2003 10:39 PM
Linux commands Shikha Linux - General 3 11-27-2002 09:40 AM
Linux Commands AMDPwred Linux - General 23 01-11-2002 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:29 AM.

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