Archive | Command Line Tricks RSS feed for this section

My New Favorite Command Line Shortcut

9 Oct

I recently learned about the Command + K command line shortcut on the Mac, and absolutely fell in love :). When there’s a ton of stuff going on in your Terminal tab, it might be hard to figure out what just happened after you clicked that button on your website vs what was loaded before.

Continue reading

Linux Command Line Trick: Delete Directory

19 Jun

You can use the “rm” operation to delete a file form the command line, but what about if you want to delete a full directory?

Simply type the following into your command line:

$ rm -fr directory_name 

.

Here is an example if you also want to try it out in your command line:

Continue reading

Linux Command Line Trick: Find All Files With A Specific Word Inside

19 Jun

Still learning command line tricks! Here is a great CLI cheatsheet to reference.

To find a file witha  specific keyword in it, simply enter the following into your command line:

  $ grep -r "keyword" * 

Here is a more comprehensive example if you want to test this out:

Continue reading

Linux Command Line Trick: Find All Files With Specific Keyword In Title

19 Jun

I’m currently learning some cool command line tricks, so I wanted to share.

To find all files in the current directory (and sub-directories) that have a specific keyword in the title, simply type the following into your command line:

 $ find . -name '*keyword*'

Here is a more comprehensive example if you want to test this out from your command line:

Continue reading