LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2005, 10:50 AM   #1
penguinlnx
Member
 
Registered: Mar 2005
Location: Ice Station Alert AFB
Distribution: Gentoo
Posts: 166

Rep: Reputation: 30
DOS 3.3 features I used to take for granted...?


Maybe I am a dinosaur,
and maybe even maintenance activities like 'defragging' have also gone the way of the dinosaur. ....

But I still feel like I'm floating at sea in a rowboat,
when I can't even do a 'dir' and automatically be told
how much space my files are taking up,
and how much space I have left on my hard drive or partition.

Isn't there a simple set of utilities or built-in commands that
do all the things the DOS commands did, (which was kinda like Unix anyway)?

...under Linux I mean...
 
Old 03-17-2005, 10:58 AM   #2
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
Besides 'dir', I think you might want to check out the 'du' and 'df' commands...
 
Old 03-17-2005, 12:23 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
How about the whole coreutils package? It does pretty much everything dos did, and more. I don't really think dos was much like linux... perhaps it's similar to a particular shell.
 
Old 03-17-2005, 12:29 PM   #4
penguinlnx
Member
 
Registered: Mar 2005
Location: Ice Station Alert AFB
Distribution: Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
...coreutils pre-installed?

Is that a package that's built in or installed with my distro? (Gentoo)
or do I add those from the command line, and hunt for a tutorial?
 
Old 03-17-2005, 12:39 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
There isn't anything 'built in' to linux. All the command like ls, cp, rm etc are just programs sitting somewhere on the system. They are included as standard in every distro though.

As for defragging, it's not necessary to defrag an ext2/3 or reiserfs filesystem. Only microsoft buggered up the filesystem so hideously that it needs defragging.

ls -l will tell you in a dir like fashion how much space programs are taking up. If there's too much to fit on a page then pipe it through less (ls -l | less)

Last edited by Komakino; 03-17-2005 at 12:42 PM.
 
Old 03-17-2005, 03:15 PM   #6
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
https://www.redhat.com/docs/manuals/...-doslinux.html

This might help. Just google for dos linux commands. There are more comparisons than just that one.
 
Old 03-17-2005, 03:18 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Trust me, you have coreutils. 'ls','cp','rm', and 'mv' are all part of coreutils.
Code:
*  sys-apps/coreutils
      Latest version available: 5.2.1-r2
      Latest version installed: 5.2.1-r2
      Size of downloaded files: 4,256 kB
      Homepage:    http://www.gnu.org/software/coreutils/
      Description: Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)
      License:     GPL-2
(From esearch)
 
Old 03-17-2005, 03:40 PM   #8
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Re: DOS 3.3 features I used to take for granted...?

Quote:
Originally posted by penguinlnx

how much space my files are taking up,
Hi,
If that's what you want, try this:
Code:
ls -l
If you are tired of writing the "-l" each time:
-Open /etc/profile (or maybe ~/.bashrc if you don't want a system-wide update)
-Add this:
Code:
alias ll='ls -l';
#If you want some color to differentiate between file types, use this instead:
#alias ll='ls -l --color=auto ';
Then, of course, all you have to do is write "ll" at the command line.

Regards,

Last edited by lokee; 03-17-2005 at 03:41 PM.
 
Old 03-19-2005, 05:16 AM   #9
penguinlnx
Member
 
Registered: Mar 2005
Location: Ice Station Alert AFB
Distribution: Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
Wow great tip:

I just used that "Alias" trick to make a command:
  • showupdates="find /etc -iname '._cfg.????_*' " ;
  • which automatically scans for config files that need updating.

Now I can just type # "showupdates" > list.txt to have a list of files that need name changing.

The old batch file days are returning....
 
  


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
New LQ Features jeremy Linux - News 80 03-04-2007 06:21 PM
Features of KDE vs. Features of Gnome donlinux Linux - Newbie 17 12-04-2005 12:01 PM
Granted myself Access nealkochhar Linux - Software 2 05-28-2004 10:55 AM
Dos Emulator without Dos dtheorem Linux - Software 1 10-14-2003 01:18 PM
Dos Emulator without Dos dtheorem Linux - Software 1 10-14-2003 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:15 AM.

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