Find the answer to your Linux question:
Page 1 of 4 1 2 3 4 LastLast
Results 1 to 10 of 31
Hi. I know this stuff is pretty simple, but I never use the CLI for things other than installing software from source, and changing runlevel. - What is the command ...
  1. #1
    Linux Newbie
    Join Date
    Nov 2006
    Posts
    125

    Command line Commands

    Hi. I know this stuff is pretty simple, but I never use the CLI for things other than installing software from source, and changing runlevel.

    - What is the command to move a file from a to b?

    - How do I use fdisk to format "/media/sda1" as Fat32?

    - How do I mount something?

    - How do I unmount something?

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    Quote Originally Posted by Wifi_is_evil
    - What is the command to move a file from a to b?
    Code:
    mv a b
    Quote Originally Posted by Wifi_is_evil
    - How do I use fdisk to format "/media/sda1" as Fat32?
    Not sure about this one.
    Code:
    man fdisk
    Quote Originally Posted by Wifi_is_evil
    - How do I mount something?
    Code:
    mount blah
    Where "blah" is either the mount point (e.g. /mnt/windows_disc), or the hdd partition (e.g. /dev/hda3)

    Quote Originally Posted by Wifi_is_evil
    - How do I unmount something?
    Code:
    umount blah
    You should have a look at the man pages for all these commands to figure out exactly what they do.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  3. #3
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Let's say you wanted to move the file "hotdogs" from /home/Wifi_is_evil/directory_1 to /home/Wifi_is_evil/directory_2. You'd go:
    Code:
    mv /home/Wifi_is_evil/directory_1/hotdogs /home/Wifi_is_evil/directory_2
    ...or, if you were already in the directory where "hotdogs" is:
    Code:
    mv hotdogs /home/Wifi_is_evil/directory_2
    To mount say a cd...
    If your cdrom is in /mnt...
    Code:
    mount /mnt/cdrom
    To unmount you'd do...
    Code:
    umount /mnt/cdrom
    Remember, it's umount and not unmount.

    EDIT: I see smolloy beat me to it.
    Last edited by Dapper Dan; 12-16-2006 at 03:52 AM.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  4. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    If you can, you will want to use cfdisk as opposed to fdisk. cfdisk is much easier to use (trust me).

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  5. #5
    Linux Newbie
    Join Date
    Nov 2006
    Posts
    125
    Thanks both of you! I can't believe how fast you replied . Hehe.. Suse 10.2 reinstall time! YAAAY.

  6. #6
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    Quote Originally Posted by Wifi_is_evil
    Thanks both of you! I can't believe how fast you replied .
    Friday night. 9pm. And I'm answering posts on an internet forum.

    *shakes head sadly*
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  7. #7
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Quote Originally Posted by Wifi_is_evil
    Thanks both of you! I can't believe how fast you replied . Hehe.. Suse 10.2 reinstall time! YAAAY.
    Wifi_is_evil, why are you going to re-install?? Linux is not like Windows in that you have to re-install every time something goes amiss. You can get under the hood and fix it with Linux. What needs fixing?
    Linux Mint + IceWM Registered:#371367 New Members: click here

  8. #8
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    Quote Originally Posted by smolloy
    Friday night. 9pm. And I'm answering posts on an internet forum.

    *shakes head sadly*
    I found myself asking the same question when I logged in . Although, its 12AM here and I need to get to sleep. Cursed early wakeup!

    As Dapper Dan said, if something is wrong, there is probably a solution. What seems to be the problem?

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  9. #9
    Linux Newbie
    Join Date
    Nov 2006
    Posts
    125
    Ah, I've run into problems. How do I mount my usb HD? I am pretty sure it used to be auto mounted as /media/sda1 but I can't?

    And cfdisk gives me a "FATAL ERROR: cannot open disk drive" when I try to open it.

    How do I write a DVD again? And can the CLI dvd writing program burn iso images at a 4x speed? :P (If so, how?)

    Hehe.. this is fun. I could become a 1337 CLI h4xX0R.

    Pity CLI can't execute programs in X windows. I suppose there aren't too many programs around just for CLI anymore.

  10. #10
    Linux Newbie
    Join Date
    Nov 2006
    Posts
    125
    Well, actually, my problem isn't worth the effort. Plus this way I learn the command line better.

    - My DVD was corrupted because I accidentally burned it at 12.3x but I didn't want to waste it so I tried and 10.2 installer doesn't have a disk check!!!!!!!!!!!!! I figured it must automagically do it now and that I got lucky so I proceeded.

    - Then, it told me there were no errors so I happily went along till I got this command line, init 3 and 5 got "reached" (but nothing changed).

    - I tried running KDE but it wouldn't :@.

    - I tried running GNOME but it wouldn't :@@.

    I decided to try this "repair" option on the DVD and it told me all this stuff about how YaST wasn't installed properly but it couldn't repair, along with many other of the base installation requirements so really, I can't be bothered. Who would even try?

Page 1 of 4 1 2 3 4 LastLast

Posting Permissions

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