This short guide shows some important commands for your daily work on the Linux command line.
cli's tag archives
How to search files for specific content
Simple linux command to search all files in a given path and display the line in the file which matches defined content.
find <PATH> -print | xargs grep "<CONTENT>"
or
find <PATH> -type f -exec grep -H "<CONTENT>" \;
Categories
-
- Announcements (1)
- CentOs (1)
- Change Management (1)
- Debian (3)
- HIPPA (1)
- Linux (5)
- PCI (3)
- PHP (1)
- Security (3)
- Sysadmin (4)
- Ubuntu (2)
- VPS Servers (1)
- Xen (1)
Recent Posts
- CentOS 5.1 Now Available for all VPS packages
- Hosted Change Management
- OpenSSL Vulnerability
- Securing Xen in a Distributed Environment
- Act Now To Prevent Data Breaches
- Important Concepts For Linux Beginners - Permissions And Groups
- How To Set Up A Ubuntu/Debian LAMP Server
- What Version of Debian Am I Running?
- Useful Commands For The Linux Command Line
- How to search files for specific content
- Marc in Useful Commands For The Linux Comma…