Results 1 to 6 of 6

Thread: Renaming files in Linux

  1. #1
    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    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.

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    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.

  5. #5
    Join Date
    Apr 2008
    Posts
    3,522

    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>

  6. #6
    Join Date
    Apr 2008
    Posts
    3,522

    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 ]

Similar Threads

  1. Deleting and renaming files using Batch file on Windows 7 x64
    By Aerona in forum Windows x64 Edition
    Replies: 2
    Last Post: 17-05-2011, 11:51 AM
  2. Nokia C7 Renaming Of the Music Files
    By dinkster in forum Portable Devices
    Replies: 4
    Last Post: 08-01-2011, 10:14 PM
  3. Append Date-Time while Renaming files
    By Aakarshan.d in forum Operating Systems
    Replies: 3
    Last Post: 20-11-2009, 09:06 AM
  4. Renaming Music Files - working with ITunes Data Files
    By Tahseen Shahzad in forum Windows XP Support
    Replies: 2
    Last Post: 01-08-2009, 12:54 AM
  5. Batch Renaming Software for files inside zip
    By Aditix360 in forum Windows Software
    Replies: 2
    Last Post: 30-01-2009, 10:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,046,908.43902 seconds with 17 queries