Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



Renaming files in Linux

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 16-02-2010
Member
 
Join Date: Nov 2009
Posts: 43
Renaming files in Linux

Hello !

I am logging into a Linux system using ssh command and I need to change the name of Installed directory according to the given instruction of my staff.I don't the correct way to renaming it ..I can type dir command to see the directories but I am scared to loss the file . so please suggest me to do it in correct way.Thanks for your help.
Reply With Quote
  #2  
Old 16-02-2010
Devasis's Avatar
Member
 
Join Date: Jan 2008
Posts: 3,367
Renaming files in Linux

Renaming files in Linux :

In the Linux operating system,you can rename the file with the help of movie command of Linux.You can rename any file in Linux using this command :


$ mv <Old_destination> <new_directory with new name>;


The mv command requires two arguments one is for source and second one is for destination.If you don't want to move the file to another destination,you can specify the same parameter for source and destination and associate the new name for file.
Reply With Quote
  #3  
Old 16-02-2010
Solomon's Avatar
Member
 
Join Date: May 2008
Posts: 4,056
Renaming files in Linux using SHH

Renaming files in Linux

If you logged in with ssh command. It doesn't matter in which way you logged in the mv command didn't change the behavior of functionality.You can use mv command to change the name of installed directory.

You can frankly use any command which is related to file operation.Like you can move,rename,copy and delete the file according to granted permission by the owner of file or root user.Just associate the new name of file within the second parameter as a destination.
Reply With Quote
  #4  
Old 16-02-2010
MrChris-'s Avatar
Member
 
Join Date: Apr 2008
Posts: 3,237
copying files in Linux operating system

Copying files in Linux :

Linux operating system provides a way in CUI mode.You can use the terminals to issue the commands in graphical mode also.The server mostly uses CUI mode to operate a lot of transactions.

The CUI mode,the user prompted first to login directly and use ls command to list all the files form your disk and choose one of them to cpoy somewhere.

The command below shows you,how to copy particular file from one destination to another.The command takes the following form :

$ cp file dir1

The above command show that the file is the name of file which will be copied and dir1 is name of destination where file would be paste.
Reply With Quote
  #5  
Old 16-02-2010
Calvin K's Avatar
Member
 
Join Date: Apr 2008
Posts: 3,479
Removing files in Linux

Removing files in Linux

As you created some files earlier in this way you can delete them also using proper command of deletion which is shown below:

$ rm <file_name>
The rm command would be used to rename the file.You can add another option which will ask you about the confirmation in yes and no way.To use that option you need to keep -i between command and file name.

$ rm -i <file_name>
Reply With Quote
  #6  
Old 16-02-2010
Calvin K's Avatar
Member
 
Join Date: Apr 2008
Posts: 3,479
SSH command in Linux

SSH command in Linux :

The SSH is a program which is used to login into remote machine and after connecting with this command you can execute the different commands.It provides very secure communication between two hosts in a complex and insecure network.

SSH command requires the host name during connection.To execute this command,you need to put the arguments as the name of Host to which you wanted to be connect.

The syntax would be as follows with the name specified :

ssh [-l login_name ] hostname | user@hostname [command ]
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Renaming files in Linux"
Thread Thread Starter Forum Replies Last Post
Deleting and renaming files using Batch file on Windows 7 x64 Aerona Windows x64 Edition 6 18-05-2011 11:25 AM
Nokia C7 Renaming Of the Music Files dinkster Portable Devices 4 08-01-2011 10:14 PM
Append Date-Time while Renaming files Aakarshan.d Operating Systems 3 20-11-2009 09:06 AM
Renaming Music Files - working with ITunes Data Files RLN Windows XP Support 3 01-08-2009 01:54 AM
Batch Renaming Software for files inside zip Aditix360 Windows Software 2 30-01-2009 10:18 AM


All times are GMT +5.5. The time now is 12:06 AM.