LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2016, 06:09 PM   #1
Otherworlds
Member
 
Registered: Feb 2016
Posts: 49

Rep: Reputation: Disabled
How do I delete ISO files?


Hey I have a very basic question, I have a corrupt iso (unfinished) that I downloaded, but I want to delete it cause it's the wrong one. However when I try rm nameofISO it doesn't delete it says file doesn't exist...
 
Old 02-21-2016, 06:20 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Smile

Hi,
First off, welcome to the forum...
And then...
Code:
rm nameofISO
...all depends on what nameofISO really is...
You work in the shell, I noticed...CaPiTAls are important...
Code:
rm SomeISO.iso
is different from:
Code:
rm someiso.iso
...besides...why not simply delete it in the file browser of the DE? Just...a thought...
Melissa
 
Old 02-21-2016, 06:31 PM   #3
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 15 , Slackel 14.1, ChromeOS
Posts: 4,701
Blog Entries: 19

Rep: Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952
Depends on where it was downloaded to run the rm command. One needs to cd into the where the iso is located.

example on mine

Code:
harry@harry-Latitude-XT2:~$ cd Isos
harry@harry-Latitude-XT2:~/Isos$ ls
AntiX  ChromiumOS_i386
harry@harry-Latitude-XT2:~/Isos$ cd AntiX
harry@harry-Latitude-XT2:~/Isos/AntiX$ ls
64bit_sid  i386_Sid
harry@harry-Latitude-XT2:~/Isos/AntiX$ cd 64bit_sid
harry@harry-Latitude-XT2:~/Isos/AntiX/64bit_sid$ ls
antiX-16-a1-xorg-sid_x64-core.iso  md5
harry@harry-Latitude-XT2:~/Isos/AntiX/64bit_sid$
Then a I can

Code:
rm antiX-16-a1-xorg-sid_x64-core.iso
if I so wish because I am in the same folder as the iso is. Hope you understand linux file structure from my post. The "ls" command is like using your eyes to look around inside a folder like using your eyes. Just in command line is all. The "cd" command is like walking into a folder like a room in a house.

Hint: Tab key is your friend in terminal for autocomplete. For me. I just need to type "a" and then just hit tab key to complete entry name of iso to delete.

Last edited by rokytnji; 02-21-2016 at 06:36 PM.
 
Old 02-21-2016, 06:38 PM   #4
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 581

Rep: Reputation: 126Reputation: 126
not a lot to add to the previous post other than that the filename may have a ".part" attached. My bit torrent cline (transmission) gives the option to "append .part to incomplete file names". EG.
Quote:
nameofiso.iso.part
HTH
 
Old 02-21-2016, 06:46 PM   #5
Otherworlds
Member
 
Registered: Feb 2016
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
Hi,
First off, welcome to the forum...
And then...
Code:
rm nameofISO
...all depends on what nameofISO really is...
You work in the shell, I noticed...CaPiTAls are important...
Code:
rm SomeISO.iso
is different from:
Code:
rm someiso.iso
...besides...why not simply delete it in the file browser of the DE? Just...a thought...
Melissa
Quote:
Originally Posted by rokytnji View Post
Depends on where it was downloaded to run the rm command. One needs to cd into the where the iso is located.

example on mine

Code:
harry@harry-Latitude-XT2:~$ cd Isos
harry@harry-Latitude-XT2:~/Isos$ ls
AntiX  ChromiumOS_i386
harry@harry-Latitude-XT2:~/Isos$ cd AntiX
harry@harry-Latitude-XT2:~/Isos/AntiX$ ls
64bit_sid  i386_Sid
harry@harry-Latitude-XT2:~/Isos/AntiX$ cd 64bit_sid
harry@harry-Latitude-XT2:~/Isos/AntiX/64bit_sid$ ls
antiX-16-a1-xorg-sid_x64-core.iso  md5
harry@harry-Latitude-XT2:~/Isos/AntiX/64bit_sid$
Then a I can

Code:
rm antiX-16-a1-xorg-sid_x64-core.iso
if I so wish because I am in the same folder as the iso is. Hope you understand linux file structure from my post. The "ls" command is like using your eyes to look around inside a folder like using your eyes. Just in command line is all. The "cd" command is like walking into a folder like a room in a house.

Hint: Tab key is your friend in terminal for autocomplete. For me. I just need to type "a" and then just hit tab key to complete entry name of iso to delete.

Thank you glad to be here this is truly the most helpful place, but I'm trying to be strictly command oriented. Anyways thanks to both of you I just messed up somehow, I apologize... I do know the file structure etc, but I guess I just mistyped or something.... Facepalm mybad... I thought I had to do all these mounting/unmounting procedures, but luckily I do not lol.. Thanks anyways

Last edited by Otherworlds; 02-21-2016 at 06:55 PM.
 
Old 02-21-2016, 06:54 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,101
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
If you need to find it next time:
Code:
find / -type f -name "*.iso"
 
Old 02-21-2016, 07:05 PM   #7
Otherworlds
Member
 
Registered: Feb 2016
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jamison20000e View Post
If you need to find it next time:
Code:
find / -type f -name "*.iso"
Thanks however I did know that command already, I have a GNU/Linux book with the most crucial commands. I honestly think it was a glicth, but i could have mistyped it.. Is there any reason to use find / over whereis? Also I read you could use grep to locate files, but heard grep is arcane..

Last edited by Otherworlds; 02-21-2016 at 08:03 PM.
 
Old 02-21-2016, 07:14 PM   #8
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,101
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
A quote form a users signature comes to mind "there's more than one way to skin a flea" checkout:
Code:
man whereis
vrs:
Code:
man find
 
Old 02-21-2016, 07:17 PM   #9
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,101
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
I've only used grep for text.

Add: but not extensively.
 
Old 02-21-2016, 08:00 PM   #10
Otherworlds
Member
 
Registered: Feb 2016
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jamison20000e View Post
A quote form a users signature comes to mind "there's more than one way to skin a flea" checkout:
Code:
man whereis
vrs:
Code:
man find
Yeah I'd say that's most confusing for someone new to learn about linux, that there's many ways to do the same thing. But also that's the beauty of GNU/Linux that you have so many choices.. Thanks for referring me to the man man man pages definitely do come in handy

Last edited by Otherworlds; 02-21-2016 at 08:04 PM.
 
1 members found this post helpful.
Old 02-21-2016, 08:11 PM   #11
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 15 , Slackel 14.1, ChromeOS
Posts: 4,701
Blog Entries: 19

Rep: Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952
grep comes in handy with touchscreen laptops

Code:
dmesg touch | grep usb 
<snip>
[   21.875440] input: N-Trig Pen as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.0/0003:1B96:0001.0001/input/input8
[   21.877870] input: N-Trig Touchscreen as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.0/0003:1B96:0001.0001/input/input9
[   21.878285] ntrig 0003:1B96:0001.0001: input,hidraw0: USB HID v1.10 Device [HID 1b96:0001] on usb-0000:00:1d.1-2/input0
[   26.879640] input: N-Trig Pen as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.1/0003:1B96:0001.0002/input/input13
[   26.932418] input: N-Trig Touchscreen as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.1/0003:1B96:0001.0002/input/input14
[   26.932679] ntrig 0003:1B96:0001.0002: input,hidraw1: USB HID v1.10 Device [HID 1b96:0001] on usb-0000:00:1d.1-2/input1
In line with lsusb of course

Code:
harry@harry-Latitude-XT2:~$ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 1b96:0001 N-Trig Duosense Transparent Electromagnetic Digitizer
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0a5c:5801 Broadcom Corp. BCM5880 Secure Applications Processor with fingerprint swipe sensor
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
harry@harry-Latitude-XT2:~$

Last edited by rokytnji; 02-21-2016 at 08:14 PM.
 
Old 02-21-2016, 08:34 PM   #12
Otherworlds
Member
 
Registered: Feb 2016
Posts: 49

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by rokytnji View Post
grep comes in handy with touchscreen laptops

Code:
dmesg touch | grep usb 
<snip>
[   21.875440] input: N-Trig Pen as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.0/0003:1B96:0001.0001/input/input8
[   21.877870] input: N-Trig Touchscreen as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.0/0003:1B96:0001.0001/input/input9
[   21.878285] ntrig 0003:1B96:0001.0001: input,hidraw0: USB HID v1.10 Device [HID 1b96:0001] on usb-0000:00:1d.1-2/input0
[   26.879640] input: N-Trig Pen as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.1/0003:1B96:0001.0002/input/input13
[   26.932418] input: N-Trig Touchscreen as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.1/0003:1B96:0001.0002/input/input14
[   26.932679] ntrig 0003:1B96:0001.0002: input,hidraw1: USB HID v1.10 Device [HID 1b96:0001] on usb-0000:00:1d.1-2/input1
In line with lsusb of course

Code:
harry@harry-Latitude-XT2:~$ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 1b96:0001 N-Trig Duosense Transparent Electromagnetic Digitizer
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0a5c:5801 Broadcom Corp. BCM5880 Secure Applications Processor with fingerprint swipe sensor
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
harry@harry-Latitude-XT2:~$
I'm not sure what you did there, but I think you put the output of lsusb when you touchd the screen you set it to grep USB info.. If I'm correct that would be a new application for grep
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When mounting cd-image files the ISO unpacks and iso-inates it self Hevithan Linux - Newbie 6 05-04-2012 10:14 AM
need to rsync only selected files (--files-from) also need to delete files on dest. ? BrianK Linux - General 5 10-22-2009 10:52 PM
Can I delete files in /mnt/tmp? and Files in the trash can will not delete? M$ISBS Slackware 15 10-03-2009 12:56 AM
i edited the fedora9.iso files... how do i create bootable iso now? Yaniv-Fer Linux - General 3 11-04-2008 03:52 AM
how to make dvd iso file from cd iso files. hocheetiong Linux - General 1 09-29-2007 06:21 AM


All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration