we can use various terminal-based editors depending on what's installed on your Linux server. Here are a few ways to do it:
For example, the code resides in /var/www/proj_management.
🛠️ View files in the project directory:
Tech blogger and Problem solver, I share my experiences, insights, and solutions to technical challenges through my articles. With a strong background in Microsoft technologies like Power Platform, SharePoint, Azure, and RPA, I write about process automation, migration planning, troubleshooting, and best practices. My goal is to simplify complex concepts, provide practical solutions, and help others navigate technical roadblocks efficiently. Through my blogs, I aim to contribute to the tech comm
we can use various terminal-based editors depending on what's installed on your Linux server. Here are a few ways to do it:
For example, the code resides in /var/www/proj_management.
🛠️ View files in the project directory:
bashls -la /var/www/proj_management
nano
(simple editor):bashsudo nano /var/www/proj_management/index.php
vim
(powerful, but has a learning curve):bashsudo vim /var/www/proj_management/index.php
code
(if Visual Studio Code CLI is installed):bashsudo code /var/www/proj_managementIf you're accessing the server via SSH and want to edit with a GUI-based editor like VS Code on your local machine,you can use Remote - SSH extension in VS Code.----------------------------------------------------------
If you want to use Remote - SSH extension in VS Code to open and work with files on a remote Linux server (like your
/var/www/proj_management
directory), here’s a quick setup guide:✅ Step 1: Install Remote - SSH Extension in VS Code
Open VS Code.
Go to the Extensions panel (
Ctrl+Shift+X
).Search for “Remote - SSH”.
Click Install.
✅ Step 2: Add SSH Configuration
Press
Ctrl+Shift+P
to open the Command Palette.Type
Remote-SSH: Add New SSH Host
and select it.Enter your SSH command, e.g.:
bashssh your_username@your_server_ipChoose the SSH config file to save this entry (usually
~/.ssh/config
).
✅ Step 3: Connect to the Server
Open the Command Palette again (
Ctrl+Shift+P
).Select
Remote-SSH: Connect to Host
.Choose your saved server from the list.
VS Code will open a new window connected to the remote server.
✅ Step 4: Open Your Project Directory
Once connected:
Click File > Open Folder.
Enter:
bash/var/www/proj_management
You now have full access to browse, edit, run, and debug the code remotely as if it's on your local machine.
Managing file versions in SharePoint Online is essential to maintain storage hygiene and performance, especially when versioning is enabled ...
No comments:
Post a Comment