Terminal command


Login or Register to Reply

 
Thread Tools Search this Thread
# 8  
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
This User Gave Thanks to bakunin For This Post:
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Execute ssh command with additional terminal command to any remote user not working script
tomislav91
Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it...... Shell Programming and Scripting
8
Shell Programming and Scripting
Is command line invocation of gnome-terminal to run more than one command possible?
Narnie
Hello, I am trying to learn how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here: #! /bin/bash # #TODO write this for gnome and xterm USAGE=" ______________________________________________ ${0##*/} run...... Shell Programming and Scripting
0
Shell Programming and Scripting
Automated Terminal Command Help
qcom
Is there a command that someone could help me with, that would automate me having to: 1. Go into multiple different folders (probably around 100) 2. Check and see if there are either 1(+) subfolders within that 3. If there are, check and see if there are either 1(+) .m4a / .m4p / .m4v files...... OS X (Apple)
3
OS X (Apple)
what's the terminal command to do this ?
aneuryzma
what's the terminal command to do this ? thanks... UNIX for Dummies Questions & Answers
6
UNIX for Dummies Questions & Answers
Plz Help : How to use write command to execute command on some other terminal
Aashish
Hi Group , I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages. - i m writing >write user-id ! ls o ctrl-d inspite of executing the command ls,other terminal shows ! ls. Thnx in advance.... UNIX for Dummies Questions & Answers
2
UNIX for Dummies Questions & Answers
Linux and UNIX

Linux is a family of open source Unix-like operating systems based on the Linux kernel. The Linux kernel is an operating system kernel first released by Linus Torvalds on 17 September 1991. Linux distributions include the Linux kernel, system software and libraries. Popular free open source Linux distributions include Debian, Fedora, and Ubuntu. Commercial Linux distributions include Red Hat Enterprise Linux and SUSE Linux Enterprise Server. Linux may be freely modified and redistributed. Anyone on the planet may create a Linux distribution for any purpose.
Unix (trademarked as the UNIX certification mark) is a very mature family of multitasking, multiuser computer operating systems that evolved from the original AT&T Unix. Unix development starting in the 1970s by legendary Bell Labs programmers Ken Thompson, Dennis Ritchie, and others. Unix was first targeted for the Bell System and AT&T licensed Unix to outside parties. In the 1970s time period, this lead to a variety of for-profit as well as not-for-profit Unix variants.
In the early days, this included the University of California, Berkeley (BSD), Microsoft (Xenix), IBM (AIX), and Sun Microsystems (Solaris). In the early 1990s, AT&T sold their Unix rights to Novell. In 1995 Novell sold their Unix business to the Santa Cruz Operation (SCO). The UNIX trademark was passed to The Open Group, a "neutral" industry consortium. The Open Group promoted the use of the UNIX trademark for certified operating systems that comply with the Single UNIX Specification (SUS). In 2014 Apple's macOS became the Unix version with the largest global install base and macOS remains the largest Unix-user base today.
Please enjoy and help our forum community by "showing your work" and posting your code, even when your code is not working as expected. To help others help you, please wrap your code blocks, sample input, sample output, error messages, and other data in CODE tags and wrap your short commands and short data objects in ICODE tags. We were all beginners in the beginning. If you have any questions about how to register or how to post, please contact us in Live Chat. Thank you and enjoy this "forever free" technical support community for UNIX, Linux and computer information technology in general.