New Posts  All Forums:Forum Nav:

Basic Functions

post #1 of 11
Thread Starter 
What are the basic commands in terminal for:

-Copying a file
-Pasting a file
-Deleting a file
-Moving a file

If you could provide an example for each, that would be most appreciated! Thanks
post #2 of 11
You talking about a linux shell? Or Microsoft Terminal services?
TITAN-6
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4GHZ ASRock Extreme 3 Gen 3 Gigabyte Nvidia GTX 570 8GB G.skill Sniper DDR3 1866 
Hard DriveOptical DriveCoolingOS
Crucial M4 CT128M4SSD2 2.5" 128GB SATA III MATSHITA BD-CMB UJ160 Blu Ray DVD writer Cooler Master Hyper 212+ Windows 7 x64 
MonitorMonitorKeyboardPower
Sceptre 24" LCD BENQ 3D 24" LCD Logitech G510 Corsair 750W HX professional single rail 
CaseMouseMouse PadAudio
CM Storm Sniper Razer Naga left-handed version None Onboard 
  hide details  
Reply
TITAN-6
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4GHZ ASRock Extreme 3 Gen 3 Gigabyte Nvidia GTX 570 8GB G.skill Sniper DDR3 1866 
Hard DriveOptical DriveCoolingOS
Crucial M4 CT128M4SSD2 2.5" 128GB SATA III MATSHITA BD-CMB UJ160 Blu Ray DVD writer Cooler Master Hyper 212+ Windows 7 x64 
MonitorMonitorKeyboardPower
Sceptre 24" LCD BENQ 3D 24" LCD Logitech G510 Corsair 750W HX professional single rail 
CaseMouseMouse PadAudio
CM Storm Sniper Razer Naga left-handed version None Onboard 
  hide details  
Reply
post #3 of 11
I can imagine linux shell... O.o
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom X3 8450 Biostar 790gx ATI 4850 512mb OCZ 4gb DDR26400 5-5-5-18 
Hard DriveOSMonitorPower
Samsung Spinpoint 640gb Vista Premium x64/Fedora 10 Viewpoint 22" LCD OCZ Modxtreme 600w 
Case
CM690 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom X3 8450 Biostar 790gx ATI 4850 512mb OCZ 4gb DDR26400 5-5-5-18 
Hard DriveOSMonitorPower
Samsung Spinpoint 640gb Vista Premium x64/Fedora 10 Viewpoint 22" LCD OCZ Modxtreme 600w 
Case
CM690 
  hide details  
Reply
post #4 of 11
Quote:
Originally Posted by Torched-Geek
I can imagine linux shell... O.o

In Terminal Services for M$ there are weird key combos to do all that. I was cornfused.
TITAN-6
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4GHZ ASRock Extreme 3 Gen 3 Gigabyte Nvidia GTX 570 8GB G.skill Sniper DDR3 1866 
Hard DriveOptical DriveCoolingOS
Crucial M4 CT128M4SSD2 2.5" 128GB SATA III MATSHITA BD-CMB UJ160 Blu Ray DVD writer Cooler Master Hyper 212+ Windows 7 x64 
MonitorMonitorKeyboardPower
Sceptre 24" LCD BENQ 3D 24" LCD Logitech G510 Corsair 750W HX professional single rail 
CaseMouseMouse PadAudio
CM Storm Sniper Razer Naga left-handed version None Onboard 
  hide details  
Reply
TITAN-6
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4GHZ ASRock Extreme 3 Gen 3 Gigabyte Nvidia GTX 570 8GB G.skill Sniper DDR3 1866 
Hard DriveOptical DriveCoolingOS
Crucial M4 CT128M4SSD2 2.5" 128GB SATA III MATSHITA BD-CMB UJ160 Blu Ray DVD writer Cooler Master Hyper 212+ Windows 7 x64 
MonitorMonitorKeyboardPower
Sceptre 24" LCD BENQ 3D 24" LCD Logitech G510 Corsair 750W HX professional single rail 
CaseMouseMouse PadAudio
CM Storm Sniper Razer Naga left-handed version None Onboard 
  hide details  
Reply
post #5 of 11
Quote:
Originally Posted by The Hundred Gunner
What are the basic commands in terminal for:

-Copying a file
-Pasting a file
-Deleting a file
-Moving a file

If you could provide an example for each, that would be most appreciated! Thanks
ill take care of copy for you .. the command is cp lets say you want to copy a file from /home/user to /media/usbdisk and the file name is TEST1.sh you would type in

Code:
cp  /home/user/TEST1.sh /media/usbdisk
and it will copy the file for you you can also copy directorys say you want to copy /home/user/music to /media/usbdisk you want to get all the files so you will add the flag -r for recursive like this

Code:
cp -r /home/user/music /media/usbdisk
someone else can tell ya the other 3
    
CPUMotherboardGraphicsRAM
Intel I7 2600k Asus p8p67-Deluxe Zotac GTX780 6GB OC G-skill Ripjaws 1866 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 EVO 250 Samsung EVO 120 Western Digital 1TB Black Lite On 20x DVD RW 
CoolingOSOSOS
XSPC RayStorm + 360Extreme Rad Arch Linux Windows 8.1 x64 WindowsRE 
MonitorKeyboardPowerCase
Asus PB278Q ThermalTake Meka G1 Evga SuperNova 1000 P2 Xigmatek Elysium 
MouseMouse PadAudio
Logitec G500 Gaming Mouse Ultra Pad Fiio E-17 + ATH-M50 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel I7 2600k Asus p8p67-Deluxe Zotac GTX780 6GB OC G-skill Ripjaws 1866 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 EVO 250 Samsung EVO 120 Western Digital 1TB Black Lite On 20x DVD RW 
CoolingOSOSOS
XSPC RayStorm + 360Extreme Rad Arch Linux Windows 8.1 x64 WindowsRE 
MonitorKeyboardPowerCase
Asus PB278Q ThermalTake Meka G1 Evga SuperNova 1000 P2 Xigmatek Elysium 
MouseMouse PadAudio
Logitec G500 Gaming Mouse Ultra Pad Fiio E-17 + ATH-M50 
  hide details  
Reply
post #6 of 11
copy= "cp"
You can type "man cp" in the terminal to find all of the available. options/flags.(press q to exit man pages) Link
move="mv"
works just like copy. link
delete/remove="rm"
"man rm" for for info. Link
basic use "rm /home/user/screenshot.jpg"
or to remove a folder and everything in it "rm -R /home/user/notes"
paste="paste"
"man paste" for more info. Link
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #7 of 11
Thread Starter 
Quote:
Originally Posted by FrankenPC
You talking about a linux shell? Or Microsoft Terminal services?
Oops, i guess i should have said Linux. Reason is because i'm folding on this rig and i put everything on my desktop. "Work" is a locked folder and i can't move it, so i need to go into terminal as root and move it with that.
post #8 of 11
Quote:
Originally Posted by dangerousHobo
copy= "cp"
You can type "man cp" in the terminal to find all of the available. options/flags.(press q to exit man pages) Link
move="mv"
works just like copy.
link
delete/remove="rm"
"man rm" for for info. Link
basic use "rm /home/user/screenshot.jpg"
or to remove a folder and everything in it "rm -R /home/user/notes"
paste="paste"
"man paste" for more info. Link
Not quite...

mv MOVES the file. So: 'mv essay.odt ./school/' will move the file essay.odt into the folder school. After this command, there will be only ONE copy of the file, and it will be in the folder school.

When deleting directories on the command line, you'll find it doesn't like to delete directories when they're not empty. I recommend using Nautilus/Konqueror to mess with that stuff...

So cp is the copy-paste
mv is the cut-paste
rm is the delete.

That explain it?

EDIT: BTW it's 'cp FROM TO' and 'mv FROM TO'.
iMac
(13 items)
 
  
CPUGraphicsRAMMonitor
i7-2600 6970M 4GB 27" 
Mouse
Logitech M570 trackball 
  hide details  
Reply
iMac
(13 items)
 
  
CPUGraphicsRAMMonitor
i7-2600 6970M 4GB 27" 
Mouse
Logitech M570 trackball 
  hide details  
Reply
post #9 of 11
Quote:
Originally Posted by ouroboros1827
Not quite...

mv MOVES the file. So: 'mv essay.odt ./school/' will move the file essay.odt into the folder school. After this command, there will be only ONE copy of the file, and it will be in the folder school.

When deleting directories on the command line, you'll find it doesn't like to delete directories when they're not empty. I recommend using Nautilus/Konqueror to mess with that stuff...

So cp is the copy-paste
mv is the cut-paste
rm is the delete.

That explain it?
Sorry I meant the syntax in the terminal is the same as copy and not the action.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #10 of 11
i thought i covered the copy pretty well
    
CPUMotherboardGraphicsRAM
Intel I7 2600k Asus p8p67-Deluxe Zotac GTX780 6GB OC G-skill Ripjaws 1866 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 EVO 250 Samsung EVO 120 Western Digital 1TB Black Lite On 20x DVD RW 
CoolingOSOSOS
XSPC RayStorm + 360Extreme Rad Arch Linux Windows 8.1 x64 WindowsRE 
MonitorKeyboardPowerCase
Asus PB278Q ThermalTake Meka G1 Evga SuperNova 1000 P2 Xigmatek Elysium 
MouseMouse PadAudio
Logitec G500 Gaming Mouse Ultra Pad Fiio E-17 + ATH-M50 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel I7 2600k Asus p8p67-Deluxe Zotac GTX780 6GB OC G-skill Ripjaws 1866 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 EVO 250 Samsung EVO 120 Western Digital 1TB Black Lite On 20x DVD RW 
CoolingOSOSOS
XSPC RayStorm + 360Extreme Rad Arch Linux Windows 8.1 x64 WindowsRE 
MonitorKeyboardPowerCase
Asus PB278Q ThermalTake Meka G1 Evga SuperNova 1000 P2 Xigmatek Elysium 
MouseMouse PadAudio
Logitec G500 Gaming Mouse Ultra Pad Fiio E-17 + ATH-M50 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix