Home Man
Search
Today's Posts
Register

RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Terminal command

Tags
linux

Login to Reply

 
Thread Tools Search this Thread
# 8  
Old 05-19-2018
Quote:
Originally Posted by bakunin
Issue man apt-cdrom
Quote:
Originally Posted by 69Rixter
Code:
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:

Code:
# man apt-cdrom
[...]
SYNOPSIS
       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
           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

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

and you are done.

I hope this helps.

bakunin
The Following User Says Thank You to bakunin For This Useful Post:
rbatte1 (05-21-2018)
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:13 PM
Sending command from one terminal to another. alireza6485 UNIX for Dummies Questions & Answers 3 05-15-2012 02:08 PM
who command from non terminal in unix lalitpct Shell Programming and Scripting 4 01-26-2012 08:02 AM
Terminal Command into script ab52 OS X (Apple) 2 08-16-2011 11:31 AM
Script to run a command in a new terminal sojo1024 UNIX for Dummies Questions & Answers 1 06-14-2011 03:33 PM
Is command line invocation of gnome-terminal to run more than one command possible? Narnie Shell Programming and Scripting 0 02-16-2010 10:57 PM
what's the terminal command to do this ? aneuryzma UNIX for Dummies Questions & Answers 6 09-16-2009 11:45 AM
command to email from the terminal glev2005 UNIX for Dummies Questions & Answers 4 04-09-2009 01:02 PM
read terminal command munnu Programming 6 01-11-2007 03: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 11:25 AM


All times are GMT -4. The time now is 11:01 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password