Stop memorizing two sets of commands—these 7 work on Windows and Linux


If you want to use the Linux command line after using PowerShell or vice versa, you’ll find many commands are the same between the two. From file management to networking, you can find many commands in common.

cd

Change directories

Linux terminal with cd command to navigate to the extracted directory

The “cd” command, for “change directory,” isn’t particularly exciting, either in Linux or Windows. It just does its job, which is to change the working directory, or the directory that you’re currently in.

On Linux, you can supply the cd command with the absolute or relative pathname you want to go to.

Suppose you wanted to go to the /usr/share/doc directory, you’d type:

cd /usr/share/doc

If you were in your home directory and wanted to go to the docs directory that was a subdirectory of your home directory, you would type:

cd docs
Running the cd command in PowerShell.

You can go up a subdirectory relative to the current working directory by adding using “..” (two periods) as the argument:

cd ..

You can go to your home directory by just using the cd command by itself.

The cd command in PowerShell is similar. You can use cd followed by the pathname:

cd Documents

You can also use “cd ..” to go up a subdirectory, as with the Linux cd command. cd is actually an alias of the PowerShell “Set-Location” function. PowerShell defines a lot of aliases like this to be familiar to Linux users as well as MS-DOS and Command Prompt users. Commands like this that were already used in Unix and Linux helped me use my knowledge from my MS-DOS days to successfully learn the Linux command line.

mkdir

Create directories

The mkdir command is also another command that’s useful but not very exciting.

To create a new directory in Linux, use the mkdir command. To create a directory called “test” as a subdirectory of the current working directory:

mkdir test
Using the mkdir command to create the directory "test" in WSL.

The mkdir command on Linux has more options. While cd was a built-in command on zsh, my shell of choice, it’s a regular program in Linux.

You can use the -p option to set the directory permissions. If you wanted a directory to, readable, writable, and searchable by its owner and off-limits to anyone else:

mkdir -p 700 test

mkdir takes arguments similar to that of chmod for file permissions. The “7” means that the owner has read, write, and execute permissions, which for directories means that the owner can list files in the directory, while other users, even those in the same group, have no access at all.

To do the same using symbolic permission values:

 mkdir -p u+rwx g-rwx o-rwx test

The PowerShell version is similar:

mkdir test

rm

Delete files, forever

You can also delete files with the same rm command in Linux and Windows.

You can use the Linux command to get rid of a single file:

rm file
The Linux rm commands being used in a terminal window to delete a symlink.

Or you can use a wildcard character to generate a list of files. To remove all .zip files in the current directory:

rm *.txt

When you delete files using rm, you can’t get them back. They are permanently deleted, so be careful with the rm command, particularly as root and in system directories.

PowerShell also has an rm command, and it’s aliased to Remove-Item

Removing a file in PowerShell named "foo," then using the ls alias to confirm it's been deleted.

While Windows is usually forgiving with deleted files, you should be careful deleting files on the command line as you would be in Linux. Files deleted using rm don’t go to the Recycle bin, but are deleted directly.

One difference between the Linux and Windows rm commands is that the latter works on directories as well as files, while in Linux, to delete directories, you need to use the rmdir command.

ping

Is that site up or down?

If you want to check whether a remote site is responding or see if your internet connection is working, you can use the ping command.

To check if Google is responding on both Linux and Windows:

ping google.com

The two utilities behave differently on Linux and Windows. On Linux, the ping will run forever until you press Ctrl+c, and then print some summary statistics.

You can set the number of times that ping will run with the -c option. To ping four times:

ping -c 4 google.com

The Windows version will run four times by default.

nslookup

Who owns that domain name?

nslookup running in wsl

If you want to see who owns a domain name, the nslookup command will let you do so. It exists on both Linux and Windows, and the command is exactly the same, though the output looks slightly different between the two:

nslookup google.com

Running nslookup on howtogeek.com in PowerShell. cURL

Download files from the command line

cURL is a useful tool for downloading files from the command line. It’s already popular on Linux for installation scripts, but it’s now installed by default on Windows PowerShell as well.

To download a file on either system:

curl example.com
Downloading a penguins dataset using cURL.

ssh

Connect to remote servers in the terminal

SSH is another networking tool that’s ubiquitous in system administration. It’s already installed on most Linux distributions. Previously, Windows users had to install third-party tools such as PuTTY to use SSH, but PowerShell has the same OpenSSH as on Linux systems built into PowerShell.

SSH into my home server using Tailscale

If you have an account on a remote server, you can just run the SSH command:

ssh user@example.com

You can set up a remote key pair so you can log in without a password.


It’s easy to convert between the Linux and Windows command lines. You don’t have to spend time remembering commands. If you’re used to Linux, but dabble in PowerShell once in a while, you can use your favorite Linux commands.

OS

Windows, macOS, iPhone, iPad, Android

Brand

Microsoft

Price

$100/year

Developer(s)

Microsoft

Free trial

1 month

Microsoft 365 includes access to Office apps like Word, Excel, and PowerPoint on up to five devices, 1 TB of OneDrive storage, and more.




Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


The three-pointed star on the hood of a Mercedes-Benz has always been associated with luxury and status. Yet as new-vehicle prices continue to climb to all-time highs, a shift has occurred in which mainstream brands are designing vehicles with powertrains, infotainment features, and interiors that rival those of established luxury manufacturers.

In some instances, mainstream brands have enhanced their value propositions for potential buyers by offering certain features as standard that may require an add-on package in a luxury vehicle.

If you are looking for a compact SUV that can fit seven people, there is really only one sheriff in town: the Mercedes-Benz GLB. Yet a certain outlaw (or Outlander) might be worthy of a potential showdown when it comes to SUVs that seat seven. It might seem odd, or even downright crazy, to compare a Mitsubishi and a Mercedes, but when you consider them side by side, the Outlander starts to look like a premium and luxury contender for less money.


2025-mitsubishi-outlander-2.jpg

mitsubishi-logo.jpeg

Base Trim Engine

1.5L I4 Hybrid

Base Trim Transmission

2-speed CVT

Base Trim Drivetrain

Front-Wheel Drive



Customer feedback and filling the gap

Two different approaches to seven-seat utility

The Mitsubishi Outlander has a history as the “value-plus” choice for SUV buyers, but its 2022 redesign arguably placed it into a different category. As part of the redesign, the Outlander received a wider platform, resulting in a more spacious cabin.

Compared to prior years, it was clear that Mitsubishi had upgraded the Outlander’s interior, using materials and controls that elevated it beyond its value-plus reputation. Buyers benefited from a more premium driving experience, including a larger storage area in the armrest and more comfortable seats.

For the 2026 model year, the Outlander has undergone a mid-cycle refresh, one that included Mitsubishi addressing customer-specific feedback. Notable updates from the refresh include the addition of more sound-insulation material to reduce road and tire noise, and an updated mild-hybrid powertrain to improve efficiency.



















Quiz
8 Questions · Test Your Knowledge

Mitsubishi Outlander
Read on and test your knowledge

Think you know Mitsubishi’s popular SUV? Put your Outlander knowledge to the test.

HistoryPerformanceFeaturesDesignVariants

In what year did the Mitsubishi Outlander first go on sale?

Correct! The Mitsubishi Outlander was introduced for the 2003 model year, initially sold in Japan as the Airtrek before being renamed Outlander for global markets. It replaced the aging Mitsubishi RVR in the lineup.

Not quite. The Outlander first went on sale as a 2003 model year vehicle. It was originally known as the Airtrek in Japan before receiving the Outlander name for international markets.

What does the ‘PHEV’ stand for in the Mitsubishi Outlander PHEV?

Correct! PHEV stands for Plug-in Hybrid Electric Vehicle. The Outlander PHEV was launched in 2013 and became one of the world’s best-selling plug-in hybrid SUVs, praised for its ability to run on electric power alone for short distances.

Not quite. PHEV stands for Plug-in Hybrid Electric Vehicle. Launched in 2013, the Outlander PHEV was a groundbreaking model that allowed drivers to charge the battery from a wall outlet and travel short distances on electric power alone.

Which all-wheel-drive system does Mitsubishi use in the Outlander PHEV to distribute torque between front and rear axles?

Correct! Mitsubishi’s Super All Wheel Control, or S-AWC, is an advanced integrated vehicle dynamics control system used in the Outlander PHEV. It uses separate front and rear electric motors combined with braking control to optimize traction and handling.

Not quite. The correct answer is Super All Wheel Control, or S-AWC. This sophisticated system is a hallmark of Mitsubishi’s performance engineering, using electric motors on each axle along with braking input to deliver precise torque distribution.

What is the name of Mitsubishi’s signature front grille design language introduced on newer Outlander models?

Correct! The Dynamic Shield is Mitsubishi’s distinctive front-end design philosophy, first introduced on the 2014 Outlander Sport. It features a bold, protective-looking front fascia meant to convey strength and stability, and has since become a brand-wide design signature.

Not quite. The answer is Dynamic Shield. Mitsubishi introduced this front-end design language starting with the 2014 Outlander Sport, and it has since been applied across the model range to give Mitsubishi vehicles a bold, unified family look.

Which advanced driver assistance feature was offered on the Outlander as part of its MI-PILOT system?

Correct! MI-PILOT on the Mitsubishi Outlander combines adaptive cruise control with lane centering assist, helping reduce driver fatigue on highways. It uses a front camera and radar to maintain a set distance from the vehicle ahead while keeping the car centered in its lane.

Not quite. MI-PILOT provides adaptive cruise control combined with lane centering assist — not full autonomy or automatic lane changing. It is designed as a driver assistance tool to ease fatigue on long highway trips, not to replace the driver.

The fourth-generation Mitsubishi Outlander, launched in 2021, shares its platform with which other automaker’s SUV?

Correct! The fourth-generation Outlander, revealed in 2021, is built on the same CMF-CD platform as the Nissan Rogue. This is a result of the Renault-Nissan-Mitsubishi Alliance partnership, which allows member brands to share platforms and technology to reduce development costs.

Not quite. The 2021 fourth-generation Outlander shares its platform with the Nissan Rogue, thanks to the Renault-Nissan-Mitsubishi Alliance. Platform sharing is a key strategy of the alliance, helping all three brands save on engineering and manufacturing expenses.

What is the maximum seating capacity available in certain Mitsubishi Outlander configurations?

Correct! Certain Outlander trims offer optional third-row seating, bringing the total passenger capacity to seven. This made the Outlander one of the more versatile options in the compact SUV segment, bridging the gap between compact crossovers and larger three-row SUVs.

Not quite. The Mitsubishi Outlander can seat up to seven passengers in models equipped with the optional third-row seat. This was a notable selling point for families who needed extra space without stepping up to a full-size SUV.

What is the approximate all-electric range of the third-generation Mitsubishi Outlander PHEV on a full charge?

Correct! The third-generation Outlander PHEV offers approximately 22 miles (35 km) of all-electric range on a full charge. While this may seem modest compared to fully electric vehicles, it is enough for many daily commutes, and the petrol engine kicks in seamlessly for longer trips.

Not quite. The third-generation Outlander PHEV delivers around 22 miles (35 km) of pure electric range. Although it is not a long-range EV, Mitsubishi designed it to cover typical daily commutes on electricity alone, with the combustion engine available for extended journeys.

Challenge Complete

Your Score

/ 8

Thanks for playing!

By contrast, the Mercedes-Benz GLB was born out of an important, even if small, market gap. Mercedes noticed that while the subcompact GLA was popular, it was a bit too cramped for growing families. Meanwhile, the larger GLC featured a sloped roofline that looked sharp but sacrificed vertical cargo space.

To find a middle ground, Mercedes looked to its iconic G-Wagon for inspiration and created the GLB, an SUV that, in the spirit of lovable if not ugly Italian designs, maximizes every inch of its footprint. In essence, the Mercedes-Benz GLB was designed for people who wanted a maneuverable, city-friendly SUV with the “just in case” flexibility of seven seats.

The starting price gap

Nearly a $10,000 difference

One of the most immediate differences between the Outlander and the GLB is the monthly payment.

  • 2026 Mitsubishi Outlander ES: Starts at $29,995 for front-wheel drive models.
  • 2026 Mitsubishi Outlander ES S-AWC: Starts at $31,795 for all-wheel drive models (S-AWC is short for Mitsubishi’s Super-All Wheel Control system).
  • 2027 Mercedes-Benz GLB: While U.S. pricing hasn’t been finalized, previous gas-powered models started near $40,000.

2027-mercedes-benz-glb-class-exterior-54.jpg

mercedes-benz-logo.jpeg

Base Trim Engine

1.5-liter Four-cylinder Hybrid

Base Trim Transmission

8-speed Dual-clutch Transmission

Base Trim Drivetrain

All-Wheel Drive



Hybrid powertrain comparisons

Highway fuel economy a factor for the Outlander

The Mitsubishi Outlander features a new 1.5-liter turbo engine paired with a 48-volt mild-hybrid system. This is the first mild-hybrid model Mitsubishi has offered in the U.S., designed to provide better efficiency and smoother off-the-line performance without the need for a charging station. Mitsubishi’s system delivers a combined 174 horsepower and 206 lb-ft. of torque.

If you live in an area where you don’t see snowfall, a front-wheel drive Outlander will likely suffice. In addition to saving money off the initial MSRP, the fuel cost of a front-wheel drive model versus an all-wheel drive model is something to consider. Although the EPA-estimated ratings in the city are the same for both, the highway fuel savings, although small, will eventually add up over time.

For the 2027 model year, there are two versions of the Mercedes-Benz GLB: an all-electric model and a hybrid, the latter of which would be the closest comparison to the Outlander.

The GLB hybrid variant features a new 1.5-liter turbocharged four-cylinder from the Mercedes-Benz FAME (Family of Modular Engines) lineup. Paired with a 48-volt mild-hybrid system, the turbo engine uses a combustion process based on the Miller cycle to maximize efficiency.

Car Mechanic Changing the Air Filter


I ran a dealership express lube—these 4 services help your car last 200,000 miles

With new car prices at an all-time high, I’ve resolved to keep my current vehicle as long as possible.

Interior tech and comfort features

SEL Premium Package and Dolby Atmos

The biggest surprise might come when you jump inside both vehicles and see just how close the Outlander is to matching luxury establishment players.

Leaning into its newfound premium identity, the Outlander SEL is standard with leather seats, ventilated front seats, a heated steering wheel, and heated rear seats. The tri-zone automatic climate control system is also standard. Buyers who opt for the SEL Premium Package will have a unique brown semi-aniline leather interior with quilted door inserts.

Starting MSRP for the Outlander SEL with front-wheel drive is under $41,000, while all-wheel drive models are under $43,000.

Meanwhile, Mercedes-Benz has redesigned the GLB interior to include an optional MBUX Superscreen, which places the driver and central displays under a single glass surface. It is high-tech, but it is an upgrade that can quickly drive the price north.

Otherwise, for the 2027 model, Mercedes has swapped traditional leather for sustainable textiles inside the GLB. Comfort seats feature ARTICO leather with three-dimensional embossing, while the AMG Line uses microfiber made from 65% recycled materials.

The GLB is further enhanced by the available Burmester 3D audio system with Dolby Atmos and the Sky Control panoramic roof, which features 158 illuminated stars integrated into the glass.

Amazon Basics Trunk Organizer

Material

Oxford

Special Feature

Foldable

This 13.5-gallon trunk organizer features compartments to organize and store groceries, sports equipment, emergency supplies, and other daily essentials.


Cargo space and seating configurations

Outlander still holds a slight edge

Both of these SUVs are rare because they offer a third row despite their more compact footprints. The slight nuance here is that the Outlander is a three-row SUV seating seven, no matter what. The GLB is a five-seater by default, with the third row available as an option.

For the 2027 model year, the GLB has grown 3.9 inches longer than its predecessor, with a wheelbase that has expanded by 2.4 inches. This gives second-row passengers up to 39.7 inches of legroom.

However, when it comes to hauling groceries and gear, the Outlander still holds a slight edge in total volume. Here is how the cargo space compares:

2026 Mitsubishi Outlander:

  • Behind Third Row: 10.9 to 11.7 cubic feet.
  • Behind Second Row: 30.6 to 33.5 cubic feet.
  • Maximum Capacity: 64.3 to 64.7 cubic feet.

2027 Mercedes-Benz GLB (Seven-Seater):

  • Behind Third Row: 5.1 to 6.3 cubic feet.
  • Behind Second Row: 17 cubic feet.
  • Maximum Capacity: 56.7 cubic feet.

The Outlander’s wider platform allows for a higher maximum cargo capacity, which is a factor if you frequently fold the seats down for hardware store runs or camping gear.

Salesperson in a dealership showroom handing a family keys to a new car.


3 insider tricks to get VIP treatment at any car dealership

Red carpet treatment, even if you buy something used.

Factory warranty coverage

Outlander offers a long warranty period

When it comes to factory warranty, this is where Mitsubishi distinguishes itself. Here is how the factory warranty programs look for both the Outlander and GLB:

  • Mitsubishi: Includes a 10-year/100,000-mile powertrain warranty, a five-year/60,000-mile bumper-to-bumper warranty, and a two-year/30,000-mile limited maintenance program.
  • Mercedes-Benz: Offers a standard four-year/50,000-mile warranty, with maintenance typically being an out-of-pocket expense or a separate prepaid plan.

While a Mercedes-Benz offers undeniable prestige, the Outlander provides a different kind of luxury: predictable ownership costs. For many families, the security of a decade-long warranty is more valuable than the badge on the grille.


The Outlander offers more than expected

If your goal is a family hauler that feels premium but is grounded in practicality, the 2026 Mitsubishi Outlander is a smart buy.

Although nothing can replace a Mercedes-Benz, when it comes to the Outlander and the GLB, the former offers a longer warranty and standard features that may require an optional package in a Mercedes-Benz. In a market where vehicle prices are reaching record highs, the Outlander proves that you don’t have to pay a premium price to get a premium experience.



Source link