File Tasks in Ubuntu
-
Upload
travel-plan -
Category
Documents
-
view
224 -
download
1
description
Transcript of 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.
File Tasks
Deleting a File
Pasting a FilePAGE
17PAGE
20
Copy a File
Rename a FilePAGE
3PAGE
10
Renaming Files
Terminal
Keyboard
MousePAGE
4PAGE
6PAGE
8
How To Rename A File
Step 1 »
• Select the file you want to rename.
Using A Mouse
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
Step 1 »
• Select the file you want to rename.
How To Rename A FileUsing A Keyboard
Step 2 »
• Press F2.• Rename the file.• Press Enter⏎ when done.
How To Rename A FileUsing A Keyboard
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
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
Terminal
Keyboard
MousePAGE
11PAGE
13PAGE
15
Copying Files
How To Copy A File
Step 1 »
• Select the file you want to copy.
Using A Mouse
How To Copy A File
Step 2 »
• Right-click the file and select Copy.
Using A Mouse
How To Copy A File
Step 1 »
• Select the file you want to copy.
Using A Keyboard
How To Copy A File
Step 2 »
• Press Ctrl + V to copy the file.
Using A Keyboard
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
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
Keyboard
MousePAGE
18PAGE
19
Pasting Files
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
How To Paste A File
Step 1 »
• Press Ctrl + V inside the folder you want to paste the file in.
Using A Keyboard
Deleting Files
Terminal
Keyboard
MousePAGE
21PAGE
22PAGE
24
How To Delete A File
Step 1 »
• Right-click the file you want to delete and select Move to Trash.
Using A Mouse
How To Delete A File
Step 1 »
• Select the file you want to delete.
Using A Keyboard
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
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