LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-15-2003, 04:50 AM   #1
R4z0r
Member
 
Registered: Jan 2002
Distribution: CentOS 3.1
Posts: 119

Rep: Reputation: 15
Silly ls question


I am trying to make ls show file sizes in mega bytes, so far I am doing:

[root@thor backup]# ls -al --block-size=2048

total 11120
drwxr-xr-x 2 root root 4096 Jan 9 2003 .
drwxr-xr-x 20 root root 4096 Jul 15 04:03 ..
-rw-r--r-- 1 root root 22733488 Jul 15 04:03 dom.tar.gz

But the dom.tar.gz file is still not showing as MB, what am I doing wrong?

Thanks
 
Old 07-15-2003, 04:52 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
ls -alh



Cool
 
Old 07-15-2003, 06:59 AM   #3
R4z0r
Member
 
Registered: Jan 2002
Distribution: CentOS 3.1
Posts: 119

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by MasterC
ls -alh



Cool
Thank you!

One mor little thing... How can I create an alias so that when I type "ls" it actions "ls -alh" .

I've tried "man alias" but it isn't very helpful.

Thanks

Last edited by R4z0r; 07-15-2003 at 07:02 AM.
 
Old 07-15-2003, 07:08 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
If you know where to set your alias:
alias ls='ls -alh'

Usually that's in:
~/.bashrc

COol
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Silly question huble General 5 02-17-2005 03:03 AM
Silly Question koodoo Linux - Newbie 2 02-14-2005 08:20 AM
silly question bruj3w Slackware 3 08-20-2004 01:51 PM
Silly question? pudhiyavan Linux - Networking 1 12-09-2003 04:44 AM
Silly Question MattB Linux - Software 1 06-06-2002 12:30 AM


All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration