LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-01-2019, 09:11 AM   #1
jford_oldman
Member
 
Registered: Apr 2005
Location: western PA, USA - near Pittsburgh, kind of
Distribution: Debian
Posts: 36

Rep: Reputation: 17
Question Why does "ls -l R*" behave this way?


I seemed to see anomalous behavior for "ls -l R*" but it was
stupidity. The command listed the contents of a subdirectory, the name of which started with R. The subdirectory contained copies of almost all the files of the directory.

I don't know how to delete this thread. Sorry.

Last edited by jford_oldman; 05-01-2019 at 09:19 AM. Reason: I realized what had happened.
 
Old 05-01-2019, 02:25 PM   #2
Rich Strebendt
LQ Newbie
 
Registered: Dec 2009
Location: Wheaton, IL
Distribution: CentOS 5.10
Posts: 22

Rep: Reputation: 7
No problem. Be careful with those "*"s. I know of a fellow who wanted to remove a "hidden" directory structure from his home directory. Something distracted him, so he typed "rm -rf ." and looked away from his keyboard. When he looked back he accidently hit the "Enter" key. You could hear his scream all the way to the end of the hallway.
 
1 members found this post helpful.
Old 05-01-2019, 05:57 PM   #3
DMcCunney
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Rep: Reputation: 2
I used to be Tech Support Manager at a small systems house, reselling AT&T Unix systems back when AT&T was still in the computer hardware business.

One of my folks got tasked by the owner of the company to make some changes on a 3B2 system we had sold to a customer. He had a bad habit, acquired while administering a small Xenix system, of always running as root to avoid pesky permissions problems.

So when he got to the customer site, he used the menu driven system administration utility provided on the machine to create an ID for himself with root powers, and used it to make his changes. He then used the system administration menu to remove the ID he had created for himself.

What he didn't know was that unlike the corresponding utility on the 3B1 we had at the office, when you removed an ID on the 3B2 using that utility, it removed the ID, and all directories beneath that ID's home directory. The userid was root equivalent and had / as the home directory.

You guessed it. He wiped the machine.

He then had to reload Unix from the floppy distribution media, restore from the complete tape backup the user had (thank $DEITY) made just before he arrived, and redo his changes, while trying to keep the customer's bright and inquisitive rep staring over his shoulder from realizing what he had just done. (The customer was a doctor's office, and the 3B2 held billing information. The consequences of their not having a backup don't bear thinking upon.)

When he finally got back to the office late that evening and told me what had happened, I said "Now do you understand why I don't like you always running as root? Bet you'll never do that again, right?"

(The systems house went belly up not that long after, and I left before it did, so I don't know whether he actually learned from his mistake. I'd like to think so, but lay no bets...)
______
Dennis
 
1 members found this post helpful.
Old 05-03-2019, 01:48 PM   #4
i2_infinity
LQ Newbie
 
Registered: Jul 2013
Location: India
Distribution: RHEL, Fedora
Posts: 10
Blog Entries: 1

Rep: Reputation: 0
I think you wished to use something similar to one shown below

ls -l --recursive

I prefer to use long form of options wherever available.

Regards.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is dpkg/lock working differently in Oneiric? It didn't behave this way before Fennippee Linux - Newbie 1 10-29-2011 12:50 AM
Bash script does not behave the same when executed through /etc/rc.local bmpenev Linux - General 1 06-05-2009 11:46 AM
pipe gnuplot + while read does not behave as expected Geneset Linux - General 1 03-29-2009 03:23 PM
Can I make 'cd' behave this way? exitsfunnel Linux - Software 4 08-30-2003 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:51 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