Today's article has you stringing commands together in the terminal.

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
5,795
Reaction score
5,246
Credits
46,775
There's a few ways to do this, each with their own purpose. I hope I make them clear in this article.


Feedback makes the articles better, just like racing improves the breed! (That's from Mr. Honda, not referring to horses.)
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,483
Reaction score
3,192
Credits
32,530
I know it might be out of the scope of your article but it might be useful to add that when used in an if statement that || means "or" and && means "and". And there's also true and false expressions where they can be used.
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
5,795
Reaction score
5,246
Credits
46,775
Yeah, that's beyond the article's scope - but it'd make a fine addition as a comment. I don't think your comments need to be manually approved anymore. ;)

One of the things I'd like to start covering is some basic shell scripting - but I've got some confidence issues going on there. I'm really not as well-versed as I once was/should be. Heck, at one point I was fairly fluent in Perl and Regex mostly made sense to me.

The project officially ends sometime soon. I think it was in April that I started this site - ignoring the old site entirely. But, it has been informative/entertaining enough to still have my attention. I'm probably going to keep it going for a while.

If I get too bored of it, or it becomes too onerous, I may just have to put some feelers out there to see if someone will take it over. It does make a few dollars with the ads, but not all that many.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,483
Reaction score
3,192
Credits
32,530
Yeah, that's beyond the article's scope - but it'd make a fine addition as a comment. I don't think your comments need to be manually approved anymore. ;)
Yeah I know, I thought I would comment here first :)
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
5,795
Reaction score
5,246
Credits
46,775
LOL Might as well! Your comments are always welcome, here or there.

I suppose I could someday sell the domain/contents of the site, but I'm not sure how valuable it'd be outside of the domain name. The site does pretty good (consider its age) in Google. The content, however, is licensed under a permissive license. I use a Creative Commons license that lets anyone use the content for anything they want, so long as they properly attribute the material.
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,120
Reaction score
5,994
Credits
23,583
Only comment from me is on typo

Code:
cd Foo || mkdir foo

// should be

cd Foo || mkdir Foo

Avagudweegend

Wiz
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
5,795
Reaction score
5,246
Credits
46,775
Got it covered, thanks!

I went through making some lowercase (or uppercase, I forget as that was days ago!) and must have missed one. I'll make it match.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Latest posts

Top