LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 03: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, 03:52 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
ls -alh



Cool
 
Old 07-15-2003, 05: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 06:02 AM.
 
Old 07-15-2003, 06:08 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

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

Usually that's in:
~/.bashrc

COol
 
  


Reply



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 02:03 AM
Silly Question koodoo Linux - Newbie 2 02-14-2005 07:20 AM
silly question bruj3w Slackware 3 08-20-2004 12:51 PM
Silly question? pudhiyavan Linux - Networking 1 12-09-2003 03:44 AM
Silly Question MattB Linux - Software 1 06-05-2002 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 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
Open Source Consulting | Domain Registration