Results 1 to 10 of 10

Thread: Command Line beginner

  1. #1
    Join Date
    Dec 2011
    Beans
    63

    Command Line beginner

    I have a feeling there might be something wrong with this question, but here goes. I'm taking my first steps with the command line, and I want to be able move into different volumes (and move files to volumes). I've made partitions on my hard drive for storage, which is different from the partition for Xubuntu and my home directory (and I've got a dual boot with Win7). Is there any way to change directories to get on to a different partition?
    Thanks as always.

  2. #2
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Command Line beginner

    here is a nice free e-book: http://linuxcommand.org/tlcl.php

    i think cd is change directory.

    i am more of a gui person. perhaps you could explore the option of midnight commander a gui tool that works in terminal.

    also here are nice cheat sheets: http://alinuxblog.wordpress.com/2008...y-cheat-sheet/
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

  3. #3
    Join Date
    Apr 2005
    Location
    Näsum/Bromölla, Sweden
    Beans
    25
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Command Line beginner

    Quote Originally Posted by seeker.k3 View Post
    I'm taking my first steps with the command line, and I want to be able move into different volumes (and move files to volumes).
    A soft start would be to use Midnight Commander (sudo apg-get install mc) and get a good feel for your folder structure.
    MC has some nice builtin tools for moving files, directories and much more. It's quick to move around in even the most complex structures IMHO and I couldn't live without it

    /Kasper
    Kind regards / 73 de Kasper OZ8AAZ

  4. #4
    Join Date
    May 2012
    Beans
    11

    Smile Re: Command Line beginner

    Quote Originally Posted by mastablasta View Post
    here is a nice free e-book: http://linuxcommand.org/tlcl.php

    i think cd is change directory.

    i am more of a gui person. perhaps you could explore the option of midnight commander a gui tool that works in terminal.

    also here are nice cheat sheets: http://alinuxblog.wordpress.com/2008...y-cheat-sheet/
    thanks for the book buddy

  5. #5
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Command Line beginner

    Quote Originally Posted by seeker.k3 View Post
    I have a feeling there might be something wrong with this question, but here goes. I'm taking my first steps with the command line, and I want to be able move into different volumes (and move files to volumes). I've made partitions on my hard drive for storage, which is different from the partition for Xubuntu and my home directory (and I've got a dual boot with Win7). Is there any way to change directories to get on to a different partition?
    Thanks as always.
    Extra partitions are always mounted in /media. So if I have a partition mounted as "winstuff", I would type

    Code:
    cd /media/winstuff
    To change directories to it.
    For info on the command line see the link in my signature.
    Good luck!

  6. #6
    Join Date
    Nov 2011
    Beans
    2,336
    Distro
    Ubuntu

    Re: Command Line beginner

    There's an excellent sticky on command line use at the very top of this forum.

    Partitions are mapped to directories. When you installed, if you created a "/dev/mymusic" partition, a "cd /mymusic" should get you there.

  7. #7
    Join Date
    Dec 2011
    Beans
    63

    Re: Command Line beginner

    A gui person---hmmm?

    Thanks for all this helpful information.

    Just one follow up question, though: the other volumes aren't initially present in /media when I use the CLI, but I can solve that (for the purpose of the exercise) by clicking on each volume in file manager, and then accessing them using the CLI. How can make them there using the CLI?

    Cheers

  8. #8
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: Command Line beginner

    Assuming that the partitions are ntfs, then first you need to create a directory to mount them to with mkdir, eg

    Code:
    sudo mkdir /media/windows /media/shared
    Then you need to know which dev/sd?? they have been assigned, to do this type
    Code:
    sudo fdisk -l
    Under the device feild at the beginning of each line you will see /dev/sd??

    Then mount them like so

    Code:
    sudo mount -t ntfs /dev/sd?? /media/windows
    sudo mount -t ntfs /dev/sd?? /media/shared

  9. #9
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Command Line beginner

    mount command mounts other media volumes.

    use

    Code:
     
    man mount
    to see the usage for the command.

    i think other filetypes (such as NTFS) would need to be mounted to a point.

    http://linux.about.com/od/commands/a/blcmdl8_mountx.htm

    unmount would, well, unmount it
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

  10. #10
    Join Date
    Dec 2011
    Beans
    63

    Re: Command Line beginner

    I'm very grateful for your help.
    Thanks all.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •