Terminal command


Login to Reply

Thread Tools Search this Thread
# 8  
Old 05-19-2018
Originally Posted by bakunin
Issue man apt-cdrom
Originally Posted by 69Rixter
sudo apt-get cdrom
E: Invalid operation cdrom

I did look at the man.
Once you stop being amused from my sarcasm you might notice the subtle difference between what i suggested and what you - by your own admission - executed. I am not sure but what you posted suggests that you might have looked at the wrong man page.

Anyhow, since you were busy making fun of my obviously lacking intellectual capacity i took the time to look up the man page myself. So, along with a big apology for not being fluent in mind reading, here is what i found, the relevant parts are marked bold by me:

# man apt-cdrom
       apt-cdrom [-rmfan] [-d=cdrom_mount_point] [-o=config_string]
                 [-c=config_file] {add | ident | {-v | --version} |
                 {-h | --help}}
       apt-cdrom is used to add a new CD-ROM to APT's list of available
       sources.  apt-cdrom takes care of determining the structure of the disc
       as well as correcting for several possible mis-burns and verifying the
       index files.
           add is used to add a new disc to the source list. It will unmount
           the CD-ROM device, prompt for a disc to be inserted and then
           proceed to scan it and copy the index files.
       -d, --cdrom
           Mount point; specify the location to mount the CD-ROM. This mount
           point must be listed in /etc/fstab and properly configured.
       -m, --no-mount
           No mounting; prevent apt-cdrom from mounting and unmounting the
           mount point.

So, since i suppose you don't want to mount/unmount the pen drive (you see, i am getting better at reading minds) you mount the pen drive at /some/where, then issue

# apt-cdrom -m -d=/some/where add

and you are done.

I hope this helps.

This User Gave Thanks to bakunin For This Post:
rbatte1 (05-21-2018)
Login to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Execute ssh command with additional terminal command to any remote user not working script tomislav91 Shell Programming and Scripting 8 02-26-2018 10:13 PM
A new OSX 10.12.x terminal from the command line. wisecracker OS X (Apple) 2 05-18-2017 12:44 PM
Routing command to another graphical terminal Huitzilopochtli UNIX for Dummies Questions & Answers 1 02-26-2016 03:24 AM
Sending command from one terminal to another. alireza6485 UNIX for Dummies Questions & Answers 3 05-15-2012 03:08 PM
who command from non terminal in unix lalitpct Shell Programming and Scripting 4 01-26-2012 09:02 AM
Terminal Command into script ab52 OS X (Apple) 2 08-16-2011 12:31 PM
Script to run a command in a new terminal sojo1024 UNIX for Dummies Questions & Answers 1 06-14-2011 04:33 PM
How to start a new terminal from command line? andrewust OS X (Apple) 1 12-02-2010 11:43 AM
Is command line invocation of gnome-terminal to run more than one command possible? Narnie Shell Programming and Scripting 0 02-16-2010 11:57 PM
Automated Terminal Command Help qcom OS X (Apple) 3 01-15-2010 02:23 AM
what's the terminal command to do this ? aneuryzma UNIX for Dummies Questions & Answers 6 09-16-2009 12:45 PM
command to email from the terminal glev2005 UNIX for Dummies Questions & Answers 4 04-09-2009 02:02 PM
Command to know the terminal cursor position aneesha HP-UX 3 09-02-2007 07:16 PM
read terminal command munnu Programming 6 01-11-2007 04:56 PM
Plz Help : How to use write command to execute command on some other terminal Aashish UNIX for Dummies Questions & Answers 2 03-03-2006 12:25 PM
All times are GMT -4. The time now is 11:09 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.