LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   DOS 3.3 features I used to take for granted...? (https://www.linuxquestions.org/questions/linux-software-2/dos-3-3-features-i-used-to-take-for-granted-302772/)

penguinlnx 03-17-2005 11:50 AM

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...

Nobber 03-17-2005 11:58 AM

Besides 'dir', I think you might want to check out the 'du' and 'df' commands...

Matir 03-17-2005 01:23 PM

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.

penguinlnx 03-17-2005 01:29 PM

...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?

Komakino 03-17-2005 01:39 PM

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)

benjithegreat98 03-17-2005 04:15 PM

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.

Matir 03-17-2005 04:18 PM

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)

lokee 03-17-2005 04:40 PM

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,

penguinlnx 03-19-2005 06:16 AM

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....


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