Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I used to be a DOS user and couldn't find equivalent commands for UNIX.
How do you find out local IP address in Linux?
How do you know which filesystem(hda1, hda2...) you are durrently in?
How do you find out how much free HD space you have left?
How do you know how much space a directory is taking up(not including the sub directories)?
Thank you so much

you are in good shape with a DOS backgound but DOS was not just a CLI it was a bad one. Use man pages often as in "man ls". Also one of the annoyances of the cd \?? and A: C: drives does not exist in Linux because it is all one file system cd from / to floppy is transparent and consistant even though they are different drives.
cp = COPY
rm = DEL
cd = CD
mkdir = MKDIR
rmdir = RMDIR
ls = DIR
mv = MOVE
free =~ MEM
df =~ disk info
du =~ disk usage (for current only --max-depth=1 --all)ifconfig -a for IP addresses for all devices
Note the commands above have many options "man "

To find out your ip address(es) type:
ifconfig
The prompt will show you where you are, for example if it shows:
[dmberner@barney /home]$
The first part ('dmberner' in our example) tells you who you are loggen in as (me in this case). The second part ('barney') tells you the name of the computer. The next part ('/home') tells you that you are in the directory /home. It will include the slash ('/') if you are in a directory immediately below the root directory. If you were two levels down (/usr/local for example) it would not show that '/'. The final part, the '$' tells you that you are a normal user. If it shows '#' then you are logged in as root. In terms of different drives, you just have to decide where you're going to put things like other drives when you install them. For example, I have my Windows partitions mounted as /win/drive-letter-as-appropriate.
To find out how much hard drive space you have left, type:
df
This will show you how much space is left on each partition.
To find out how much space the directories are taking up just within the current dirctory, type:
du --max-depth=1Hope this helps.
Doug

pwd shows the current directory.
Try out the tab-key to automatically
complete a command or filename.Try mc (midnight commander) like norton commander for DOS. Install if not installed. With mc you can display directory sizes and perform FTP with one panel displaying local files and one panel displaying the remote files.

![]() |
Default browser in linux
|
LINUX Multimedia & se...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |