File Commands
Create a file
or
Delete a file
Upload a file (via SCP from local to remote server)
Upload a file (via rsync from local to remote server)
Create a file
or
Delete a file
Upload a file (via SCP from local to remote server)
Upload a file (via rsync from local to remote server)
Folder (Directory) Commands
Create a folder
Create nested folders
Delete an empty folder
Delete a folder and its contents
or force delete without confirmation:
Upload a folder (via SCP)
Upload a folder (via rsync)
Create a folder
Create nested folders
Delete an empty folder
Delete a folder and its contents
or force delete without confirmation:
Upload a folder (via SCP)
Upload a folder (via rsync)
To move a file to another folder in Linux (Ubuntu), use the mv
command:
Examples:
1️⃣ Move a file to another folder:
2️⃣ Move and rename a file:
3️⃣ Move multiple files:
4️⃣ Move all .txt
files to another folder:
Basic Syntax:
Examples:
💻 Linux Terminal (Bash/Zsh)
✅ Pros:
- More powerful for scripting and automation (bash, zsh, fish).
- Comes with built-in tools like
grep
,awk
,sed
,curl
. - Full package management (
apt
,dnf
,pacman
). - No need for extra software like WSL for native UNIX commands.
- Easily integrates with servers, Docker, and dev environments.
❌ Cons:
- Learning curve for Windows users.
- Some software requires workarounds (like Microsoft Office).
🖥️ Windows Terminal (PowerShell/CMD)
✅ Pros:
- PowerShell is great for managing Windows systems (registry, services).
- Now supports WSL (Windows Subsystem for Linux), so you can run Linux commands.
- Better support for Windows-based applications.
- Native GUI file management integration.
❌ Cons:
- CMD is outdated and lacks many features of Linux shells.
- PowerShell syntax is more verbose compared to Bash.
- WSL is good, but not as smooth as a real Linux system.
Which One is Better?
🔹 For developers, system admins, and automation: Linux Terminal 🐧
🔹 For Windows users who need admin control & scripting: PowerShell 💻
🔹 For a mix of both worlds: Use WSL on Windows!
0 Comments