LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2015, 04:35 AM   #1
hexaferrum
LQ Newbie
 
Registered: Jul 2015
Location: Davenport, Florida, U.S.A.
Distribution: Q4OS
Posts: 22

Rep: Reputation: Disabled
Question Confused about a Linux Tutorial on Security


Hello Forum:

I like to practice the recommendations on Linux Tutorial forum. Nevertheless, I came across with a tutorial about security here http://www.linuxquestions.org/linux/...uick_find_Tips Beyond the commands, what is the intention of this tutorial for?
I tried it and with the first command string, the command stop with this response:
Code:
grep: ./.lastpass/pipes: Is a directory
and then, I just need to Control+C to get out of it.
Thanks for all you do!
 
Old 10-15-2015, 05:33 AM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Well, I had a quick look at the tutorial, and the intent seems to be that there are some commands which could be useful, if you are looking for files with certain characteristics. One example might be if you had a suspicion that you had been hacked (alternatively, you were taking a preventative approach, and were looking 'just in case') you might be looking for surprising files that were executable, on your system.
 
Old 10-15-2015, 11:00 AM   #3
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 22.04 LTS
Posts: 240

Rep: Reputation: 67
Quote:
Originally Posted by hexaferrum View Post
Hello Forum:

I like to practice the recommendations on Linux Tutorial forum. Nevertheless, I came across with a tutorial about security here http://www.linuxquestions.org/linux/...uick_find_Tips Beyond the commands, what is the intention of this tutorial for?
I tried it and with the first command string, the command stop with this response:
Code:
grep: ./.lastpass/pipes: Is a directory
and then, I just need to Control+C to get out of it.
Thanks for all you do!
The message says what is wrong. You only can grep files, not directories. Add "-type f" to the options for the find command and it will only search files.

I don't think you needed to Ctrl+C, the command just didn't finish yet. Depending on the amount of files the command fill take some time.
 
Old 10-15-2015, 07:20 PM   #4
hexaferrum
LQ Newbie
 
Registered: Jul 2015
Location: Davenport, Florida, U.S.A.
Distribution: Q4OS
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks for the information and clarification. It was helpful.
 
Old 10-15-2015, 08:37 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
grep itself has a recursive option -r which you could use instead of starting with 'find'. ime its smart enough to skip dirs in this situation.
 
  


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
Linux video security tutorial M4$T3R Linux - Security 7 09-05-2008 08:51 AM
LXer: Tutorial: Preventing Buffer Overflow Exploits Using the Linux Distributed Security Module, Part 2 LXer Syndicated Linux News 0 01-12-2006 06:01 PM
Security.....I'm confused? Quivver Linux - Software 6 02-17-2004 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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