Gustin Johnson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Ralf Mardorf wrote: > >> Hi :) >> >> I'm fine with the selection of applications for 64 Studio 3.0 beta, but >> I'm confused about the behaviour of Ubuntu. >> >> As user (no sudo -i) using the default terminal (emulation), I tried to >> copy all folders and files from the Firefox's default profile to a >> second profile. "Hidden" files were not copied by using the wildcard >> "*", when running the "cp" command, Doing a copy and paste by using >> Nautilus was fine. I don't know this behaviour from any other Linux. For >> example, 64 Studio 2.1 and Suse 11.1 are interpreting the wildcard "*" >> as "*" and won't ignore hidden files. >> >> I guess there is a POSIX definition ;). >> >> > > FYI, I have this alias in my .bashrc, it allows me to quickly see the > disk usage of the current directory, including the "hidden" files and > folders, sorted by size, inverted, with a total. The number is in > megabytes, rounded up. > > alias dus="du -Pacmx --max-depth=1 . | sort -g" > > Try playing around with this command, like replace the "." with "*" or a > ".*". > > For documentation about what all this means, see here: > http://halisway.blogspot.com/2007/02/bash-globbing-and-dot-files.html > > This is a good place to start if you plan on using the CLI: > http://tldp.org/LDP/Bash-Beginners-Guide/html/ > > Then once you are comfortable, this is where you go next: > http://tldp.org/LDP/abs/html/ > > You probably do not need the advanced guide unless you plan on doing > some scripting. Personally, I have printed copies of both since I work > with bash and bash scripts an awful lot, even under Windows (thanks be > to Cygwin).
Thank you Gustin :) I guess I will install Cygwin to my Windows. Yesterday I found a link about bash globbing on German. I'll take a look at "du", I didn't understand that du is a bash command, when you were writing about it before. I'm not a fan of using aliases, because too often I forgot which command + options is behind an alias and so I can run into trouble, when working e.g. with a live CD. To be honest, for some commands I'm using the bash history, which also can have the effect, that I will forget which options do what I want, while using another Linux with another history. Once I had aliases for faked DOS commands, e.g. md for mkdir, but didn't recognized it, because Suse 9.0 set them as default. I came from the Atari ST running a hardware PC emulation with DR DOS and thought the DOS commands were Linux commands too. Cheers, Ralf _______________________________________________ 64studio-users mailing list [email protected] http://lists.64studio.com/mailman/listinfo/64studio-users
