LinuxQuestions.org
Register a domain and help support LQ
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, 05:35 AM   #1
hexaferrum
LQ Newbie
 
Registered: Jul 2015
Location: Orlando, Florida, U.S.A.
Distribution: GNU/Linux Mint Rosa 17.3
Posts: 13

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, 06:33 AM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,052

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
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, 12:00 PM   #3
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 14.04 LTS
Posts: 230

Rep: Reputation: 65
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, 08:20 PM   #4
hexaferrum
LQ Newbie
 
Registered: Jul 2015
Location: Orlando, Florida, U.S.A.
Distribution: GNU/Linux Mint Rosa 17.3
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks for the information and clarification. It was helpful.
 
Old 10-15-2015, 09:37 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 06:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration