Urgent.News

What's breaking now, across thousands of outlets.

Tech

Moving from Ubuntu 26.04 to Windows: Linux Commands vs PowerShell for Developer

Introduction Recently, I migrated from Ubuntu 26.04 to Windows as my primary development environment. Since I had been using Ubuntu for development, I was already comfortable working with the Linux terminal. On Ubuntu, I frequently used commands such as ls , cd , mkdir , touch , rm , and cat when navigating directories and managing project files. However, after moving to Windows, I discovered…

When I relocated my development environment from Ubuntu 26.04 to Windows, I needed to adjust to working with the Windows PowerShell command line. While many Linux commands remained compatible, some did not translate directly. In this piece, I will outline the main differences between Linux terminal commands and their Windows PowerShell counterparts, and provide guidance for developers transitioning between the two systems.

1. Windows PowerShell Environment

Windows offers two primary command-line interfaces: Command Prompt (CMD) and PowerShell. I primarily used PowerShell during my transition, which employs cmdlets such as New-Item, Get-ChildItem, and Remove-Item to carry out various tasks, as opposed to the Linux-style tools I was accustomed to on Ubuntu.

2. Common Linux Commands and Their Windows PowerShell Equivalents

Here are some Linux commands I frequently used, along with their Windows PowerShell equivalents:

- Listing files and directories: In Ubuntu, I used the ls command. In PowerShell, I can achieve similar results with the ls or Get-ChildItem commands. Both commands allow me to view files and directories within the current location.

- Checking the current directory: On Ubuntu, the pwd command displays the current working directory. In PowerShell, I use Get-Location for the same purpose.

- Creating a directory: To create a new directory named "my-project" on Ubuntu, I employed the mkdir command. In PowerShell, I use the New-Item command with the -ItemType Directory flag, or the shorter version mkdir my-project.

- Creating a file: On Ubuntu, I would use the touch command to create an empty HTML file, such as index.html. In PowerShell, I can create a file by executing the New-Item command with index.html as the name and specifying -ItemType File. Alternatively, New-Item style.css -ItemType File creates an empty CSS file.

- Deleting a file: On Ubuntu, I would use the rm command to delete a file, e.g., rm index.html. In PowerShell, the Remove-Item command serves the same purpose.

- Reading file contents: On Ubuntu, I would use the cat command to display the contents of a file, like cat index.html. In PowerShell, I use the Get-Content command for the same purpose.

- Changing directories: Both Ubuntu and PowerShell use the cd command to navigate directories. To move one level up in the directory hierarchy, I can use cd ..

- Clearing the terminal: On Ubuntu, I would run the clear command to clear the terminal screen. In PowerShell, I use the Clear-Host command to achieve the same effect.

3. PowerShell vs. CMD

While PowerShell and CMD share some similarities, they are distinct environments. Here's a quick comparison:

Operation Ubuntu PowerShell Windows CMD

- List files ls ls dir

- Current directory pwd Get-Location cd

- Create directory mkdir mkdir mkdir

- Create file touch New-Item type nul file.txt

- Delete file rm Remove-Item del

- Read file cat Get-Content type

- Change directory cd folder cd folder cd folder

- Clear terminal clear Clear-Host cls

Some commands are compatible across multiple environments, while others require different syntax. Understanding these differences is crucial for developers transitioning from Ubuntu to Windows.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at dev.to →

More in Tech

Don't call a login expired after one failed check

Styx connects to Vercel, AWS, Supabase and others through the logins you already have, and agents ask to use them. A login can expire without telling anyone, so Styx checks every connected target…

  • Styx software checks logins every 30 minutes to track them.
  • Differentiates between temporary network issues and real authentication failures.
  • Agents receive error messages when targets are marked expired.

Your Compose Code, on More Screens and Less CPU

If Codename One didn't exist, Kotlin Multiplatform is probably the platform I'd choose. I prefer Java, but Kotlin is a good language, and KMP was one of the strongest platforms we measured against in…

Day 169 | 把每日生命日记,重估为一笔需要多通道托管的长期资产

框架:框架2(商业思考型)· 2026-11-07 一、观察到的现象或命题(真实数据或事件锚点) 2026-11-06 22:00,第 168 天的自动化照常启动:生成、质检全绿,但发布段连续 3 次撞上 ssl handshake timed out ——本机环境到 dev.to 的 TLS 握手超时,Day 168 的日记没能发出。这不再是"代码 bug",而是 单通道依赖的第一次真实失效…

  • Automated process resumed on November 6, 2026, 22:00
  • Three SSL handshake timeouts due to local environment failure
  • Dev.to archives compiled 105 posts from single overseas platform

More from Saturday 7 November →