FAQ tagged as:

command search

Q. I had written lots of code in C for my school work and saved it as source code under /home/user/c/*.c and *.h. How do I find files by content such as string or words (function name such as main() under UNIX shell prompt?

{ 10 comments }

Q. I’d like to find out if xyz package is available or not using apt-get command. How do I look up package names and contents via shell command?
A. You need to use apt-cache command to performs a variety of operations on APT’s package cache. apt-cache does not manipulate the state of the system but [...]

{ 0 comments }

grep in Bash

by Vivek Gite · 0 comments

How do I use grep command in Bash?

{ 0 comments }

How do I search for file in Bash?

{ 0 comments }

Q. How do I list or find all the files owned by a particular system user or group under Linux or UNIX operating system?
A. Only find command (search for files in a directory hierarchy) got options that allow you to search files owned by a specific user or groups.
Find file owned by group
Use following syntax:
find [...]

{ 0 comments }

nixCraft FAQ PDF Collection Now Available To All