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 ...
- 12-16-2006 #1Linux 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?
- 12-16-2006 #2
Originally Posted by Wifi_is_evil Code:mv a b
Not sure about this one.
Originally Posted by Wifi_is_evil Code:man fdisk
Originally Posted by Wifi_is_evil Where "blah" is either the mount point (e.g. /mnt/windows_disc), or the hdd partition (e.g. /dev/hda3)Code:mount blah
Originally Posted by Wifi_is_evil You should have a look at the man pages for all these commands to figure out exactly what they do.Code:umount blah
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
- 12-16-2006 #3
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:
...or, if you were already in the directory where "hotdogs" is:Code:mv /home/Wifi_is_evil/directory_1/hotdogs /home/Wifi_is_evil/directory_2
To mount say a cd...Code:mv hotdogs /home/Wifi_is_evil/directory_2
If your cdrom is in /mnt...
To unmount you'd do...Code:mount /mnt/cdrom
Remember, it's umount and not unmount.Code:umount /mnt/cdrom

EDIT: I see smolloy beat me to it.
Last edited by Dapper Dan; 12-16-2006 at 03:52 AM.
- 12-16-2006 #4
If you can, you will want to use cfdisk as opposed to fdisk. cfdisk is much easier to use (trust me).
BryanLooking 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.
- 12-16-2006 #5Linux 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.
- 12-16-2006 #6Friday night. 9pm. And I'm answering posts on an internet forum.
Originally Posted by Wifi_is_evil
*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
- 12-16-2006 #7Wifi_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?
Originally Posted by Wifi_is_evil
- 12-16-2006 #8I found myself asking the same question when I logged in
Originally Posted by smolloy
. 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?
BryanLooking 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.
- 12-16-2006 #9Linux 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.
- 12-16-2006 #10Linux 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?


Reply With Quote