Aliases on Linux commands

Linux @rogeernavarro
Linux terminal

Hey there. I'm still learning stuff every day, but I just found something that saves me time when updating my Arch Linux system, and I thought maybe it could help you too.

You know how we always type:

sudo pacman -Syu

Well, I got tired of writing that long command every time, so I made a quick alias. Here’s how:

echo "alias update='sudo pacman -Syu'" >> ~/.bashrc
  source ~/.bashrc

Now I just type update and it handles everything. This works on .zshrc too if you're using zsh.

Installing PHP on Arch Linux

PHP Linux @rogeernavarro
PHP code

So you're on Arch and want to mess with PHP? Maybe for a local test server or to practice backend stuff? Here's how I did it on my own system — super quick and worked fine.

First, update your system (just in case you haven't already):

sudo pacman -Syu

Then install PHP and some common extras:

sudo pacman -S php php-apache

If you want to test PHP quickly, just create a simple file like this:

echo "" > test.php

Then run the built-in PHP server:

php -S localhost:8000

Boom! Open http://localhost:8000/test.php in your browser and you should see PHP info. Easy stuff.

The iPhone 17 Air is Thin, but at What Cost?

iPhone Smartphones @rogeernavarro
iPhone

Apple's gone crazy with making the iPhone 17 Air super thin, but honestly, is this what anyone actually wants?

Yeah, it looks cool and all, but when your phone dies halfway through the day just to be a bit slimmer, that's not good. Who's begging for this?

The tiny battery is a straight-up result of this obsession with thinness. Instead of giving us better features or a tougher phone, Apple's all about that sleek vibe again.

And they might even bring back those bulky Smart Battery Cases to fix the mess they made. How's that forward-thinking?

I miss when phones were getting actually better, not just skinnier. Fingers crossed Apple wakes up and lets us pick battery life over looking "fancy".

About This Blog

I'm Roger, a student and computers enthusiast, and I made this blog to drop short tricks and tips from what I'm learning. More content is coming, probably about C, BSD, or whatever I break next.