CodeNewbie Community 🌱

Discussion on: Three nifty shortcuts on the Command Line

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

Tips 1 & 2 also work on Windows CMD - 3 works for file paths.

On Powershell all 3 work πŸ₯³ (The bonus doesn't work on either because no touch command 😒)

Forem tip: Instead of starting your post with "Originally posted on my blog" with a link, you can use canonical_url: https://codingwithaaron.wordpress.com/2021/08/28/three-nifty-shortcuts-on-the-command-line/ to create a linkback to your blog which has SEO benefits for your blog πŸ₯³πŸ₯³

Collapse
 
aaron profile image
Aaron McCollum

Thanks for the Windows info! And I will try that with my next post later today. Appreciate the heads up on the linkback - that’s clutch!

Collapse
 
aaron profile image
Aaron McCollum

@terabytetiger Hey there, me again! I haven't figured out how to use the canonical URL. I posted the command in the parenthesis, however instead of having it go to my sight, it went to a 404 error. Would you happen to know where I can include the canonical URL?

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

The Canonical URL has to get set in the frontmatter - if you're using the v2 editor it'll look something like this:

Version 2 editor for forem with the settings cog opened showing a spot for canonical url

If you're using the v1 editor it'll look more like this:

V1 editor for DEV showing a canonical url in the frontmatter

Then you can remove your line linking back to your post since there will be an auto generated link at the top of the article:

A Post on DEV with a canonical url linkback to the originally posted site.

Thread Thread
 
aaron profile image
Aaron McCollum

Mind officially blown! I have the V2 editor it looks like. That's incredible, thanks so much!

Thread Thread
 
terabytetiger profile image
Tyler V. (he/him)

I forgot that the V2 editor didn't use frontmatter the same way, which probably induced the initial confusion πŸ˜… I'm glad I could clear it up though! πŸ₯³