LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-21-2020, 08:22 PM   #1
bestdeals
LQ Newbie
 
Registered: Jul 2020
Posts: 25

Rep: Reputation: Disabled
changing devices in terminal


I am still learning the command terminal, so please give me some latitude. I want to execute terminal commands for files that reside on my flash drive, but do not know how to move to the directory of the device they are on in terminal mode. In windows I would just switch to the drive letter, then change to the directory. I did a google search and thread search here but could not find any clear instructions on how to do that. Please advise.
 
Old 07-21-2020, 08:42 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,222
Blog Entries: 13

Rep: Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276
Recommend you consider the mv(1) command.
 
Old 07-21-2020, 08:47 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,365

Rep: Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006
Hmmm. I read it to be an issue with mount, about which I know almost nothing. I read “move to” to mean cd to, but I think we need to know if the flash drive is mounted, and where, and I don’t know what to tell the OP beyond man cd
 
1 members found this post helpful.
Old 07-21-2020, 09:15 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,474

Rep: Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453
Quote:
Originally Posted by bestdeals View Post
In windows I would just switch to the drive letter, then change to the directory.
Similar concept, different philosophy. Instead of drives, *nix uses mountpoints - so you change to a directory (think folder) under that mountpoint. If you issue a "df -hT" you will see all your mounts, including hopefully your drive. Then you can use either the full path <mountpoint>/directory in your command or "cd" to that directory as mentioned above.
Linux has a help system for each command called "man" also mentioned above - use "q" to quit from man. (no quotes when entering commands)
 
2 members found this post helpful.
Old 07-21-2020, 09:45 PM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,222
Blog Entries: 13

Rep: Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276
Quote:
Originally Posted by scasey View Post
Hmmm. I read it to be an issue with mount, about which I know almost nothing. I read “move to” to mean cd to, but I think we need to know if the flash drive is mounted, and where, and I don’t know what to tell the OP beyond man cd
Quite correct. I read "move" and missed that it says "move to".

Yes using the cd command is the thing to do.

Recommend reading up on that.
 
1 members found this post helpful.
  


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
LXer: 179 Color Schemes For Your Gtk-Based Linux Terminal (Gnome Terminal, Tilix, Xfce Terminal, More) LXer Syndicated Linux News 0 07-28-2019 05:50 AM
SW RAID - Raid devices larger than Total Devices tkrin Linux - Server 2 12-10-2010 12:01 PM
mdadm shrinking RAID5 array from 6 devices to 5 devices Qwerty9119 Linux - Software 4 02-16-2010 06:48 PM
system calls to devices?Talking to devices. kiruxa Linux - Hardware 6 12-09-2006 06:46 PM
what is the different btw raw devices and block devices yenonn Linux - General 2 02-10-2006 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:19 AM.

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
Open Source Consulting | Domain Registration