File Tasks in Ubuntu

24
Ubuntu From Dummy to Diploma Renaming, Copying, Pasting, and Deleting Files This book is under construction and will be updated in the future. Please check back often for more updates and topics.

description

This books shows you how to rename, copy, paste, and delete files in Ubuntu.

Transcript of File Tasks in Ubuntu

Page 1: File Tasks in Ubuntu

Ubuntu From Dummy to Diploma

Renaming, Copying, Pasting, and Deleting Files

This book is under construction and will be updated in the future. Please

check back often for more updates and topics.

Page 2: File Tasks in Ubuntu

File Tasks

Deleting a File

Pasting a FilePAGE

17PAGE

20

Copy a File

Rename a FilePAGE

3PAGE

10

Page 3: File Tasks in Ubuntu

Renaming Files

Terminal

Keyboard

MousePAGE

4PAGE

6PAGE

8

Page 4: File Tasks in Ubuntu

How To Rename A File

Step 1 »

• Select the file you want to rename.

Using A Mouse

Page 5: File Tasks in Ubuntu

Step 2 »

• Right-click on the file you want to rename.• Click on Rename….• Rename your file.• Press Enter⏎ when done.

How To Rename A FileUsing A Mouse

Page 6: File Tasks in Ubuntu

Step 1 »

• Select the file you want to rename.

How To Rename A FileUsing A Keyboard

Page 7: File Tasks in Ubuntu

Step 2 »

• Press F2.• Rename the file.• Press Enter⏎ when done.

How To Rename A FileUsing A Keyboard

Page 8: File Tasks in Ubuntu

Step 1 »

• Change to the directory of where the file is stored.• To change the name of the file from Test to Testy type mv Test Testy.

› The command to use is mv.› Example: mv (current name of file) (name you want to

rename the file to)• Press Enter ⏎ to finalize.

How To Rename A FileUsing Terminal

Page 9: File Tasks in Ubuntu

Step 2 »

• To confirm the change did take place, first find the file you want to rename.

› Dir lists all files in the directory you are currently in.• Next rename that file using the mv command.• Finally use dir to list all files in the directory again.• Notice the file name has changed from Test to Testy.

How To Rename A FileUsing Terminal

Page 10: File Tasks in Ubuntu

Terminal

Keyboard

MousePAGE

11PAGE

13PAGE

15

Copying Files

Page 11: File Tasks in Ubuntu

How To Copy A File

Step 1 »

• Select the file you want to copy.

Using A Mouse

Page 12: File Tasks in Ubuntu

How To Copy A File

Step 2 »

• Right-click the file and select Copy.

Using A Mouse

Page 13: File Tasks in Ubuntu

How To Copy A File

Step 1 »

• Select the file you want to copy.

Using A Keyboard

Page 14: File Tasks in Ubuntu

How To Copy A File

Step 2 »

• Press Ctrl + V to copy the file.

Using A Keyboard

Page 15: File Tasks in Ubuntu

How To Copy A File

Step 1 »

• Navigate to where the file is stored.• To copy the file from Documents to the Public folder, type cp /home/(user)/Documents/Test /home/(user)/Public/Testy, where (user) is the username of the computer.• Press Enter⏎ .

Using Terminal

Page 16: File Tasks in Ubuntu

How To Copy A File

Step 2 »

• As you can see, the file was copied to the Public folder and the file name was changed to Testy.

› The command to use is cp.› Example: cp (path where the file currently resides) (path

where you want the file).

Using Terminal

Page 17: File Tasks in Ubuntu

Keyboard

MousePAGE

18PAGE

19

Pasting Files

Page 18: File Tasks in Ubuntu

How To Paste A File

Step 1 »

• Right-click any blank area inside the folder you want to paste and select Paste.

Using A Mouse

Page 19: File Tasks in Ubuntu

How To Paste A File

Step 1 »

• Press Ctrl + V inside the folder you want to paste the file in.

Using A Keyboard

Page 20: File Tasks in Ubuntu

Deleting Files

Terminal

Keyboard

MousePAGE

21PAGE

22PAGE

24

Page 21: File Tasks in Ubuntu

How To Delete A File

Step 1 »

• Right-click the file you want to delete and select Move to Trash.

Using A Mouse

Page 22: File Tasks in Ubuntu

How To Delete A File

Step 1 »

• Select the file you want to delete.

Using A Keyboard

Page 23: File Tasks in Ubuntu

How To Delete A File

Step 2 »

• Press Delete to delete the file into the Trash.OR• Press Shift + Delete to delete the file permanently.

Using A Keyboard

Page 24: File Tasks in Ubuntu

How To Delete A File

Step 1 »

• Navigate to the directory where the file is stored.• To delete the file type rm test.

› The command to use is rm.› To delete a directory use the -r switch.› Example: rm (filename) (switches).

• Press Enter⏎ .

Using Terminal