Ubuntu Tutorial

Copy File : to copy file we use cp command. following are ways to copy file.

  1. File Explorer: open directory > select file right click and select Copy or use shortcut ctrl + c > go to desire directory right click and select paste or use shortcut ctrl + v
  2. Using Terminal : use following syntax. source is file name and destination is path of directory.

    syntax : cp -iv source destination

    • -i print message before overwrite files.
    • -v print what is being done.

    image
    copy file using terminal

Rename File : to rename file we can use mv command. following are ways to rename file.

  1. File Explorer: open directory > select file right click and select Rename or use shortcut F2 or fun + F2 > enter new name and click on Rename
  2. Using Terminal : use following syntax. source will be file name and destination will be new file name.

    syntax : mv source destination

    image
    rename file using terminal

Move File: to move file we use mv command. following are ways to move file.

  1. File Explorer: open directory > select file right click and select Cut or use shortcut ctrl + x > go to desire directory right click and select paste or use shortcut ctrl + v
  2. Using Terminal : use following syntax. source will be file name and destination will be path of directory.

    syntax : mv source destination

    image
    move file using terminal

Moving File to Trash (Recycle Bin) : following are ways to move file to Trash (Recycle Bin) .

  1. File Explorer: open directory > select file right click and select Move to Trash or use shortcut delete
  2. Using Terminal : use following syntax.

    syntax : mv file-name ~/.local/share/Trash/files

    image
    move file to trash using terminal

Delete File (permanently) : following are ways to delete file permanently.

  1. File Explorer: open directory > select file use shortcut shift + delete > it will prompt message for confirm delete select delete
  2. Using Terminal : use following syntax for deleting directory permanently.

    syntax : rm file-name

    image
    delete file permanently using terminal