Days
Hours
Minutes
Seconds

Super Black Friday Sale!

0
No products in the cart.
  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9659
    blankabctest483
    Member

    I’m trying to view the files in the linux (xubuntu) terminal (like this command: ls).
    Is there a way to do it with the command grep? Thanks for helpers.

    #9660
    blankabctest483
    Member

    You can use recursive (-r) and only filename (-l)

    grep -r . -l
    

    You can set a directory action (-d skip) to only grep files in a directory

    grep -r . -d skip -l *
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.