Computing.Net > Forums > Linux > questions on UNIX commands

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

questions on UNIX commands

Reply to Message Icon

Name: Woojin Yu
Date: March 24, 2001 at 09:00:32 Pacific
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: James
Date: March 24, 2001 at 10:23:00 Pacific
Reply:

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 "


0

Response Number 2
Name: Doug Berner
Date: March 24, 2001 at 10:23:42 Pacific
Reply:

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=1

Hope this helps.
Doug


0

Response Number 3
Name: JS
Date: March 26, 2001 at 00:30:46 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Default browser in linux LINUX Multimedia & se...



Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: questions on UNIX commands

help with unix command www.computing.net/answers/linux/help-with-unix-command/24889.html

Shell Script Question www.computing.net/answers/linux/shell-script-question/15096.html

My SQL Help.... Bind on unix Socket www.computing.net/answers/linux/my-sql-help-bind-on-unix-socket/18836.html