change default path to open in termanl 1

change default path to open in termanl

echo "cd /home/tiago-franca/Desktop/php-projects" >> ~/.bashrc

# Or edit the file
nano ~/.bashrc

# Paste in the opend file
echo "cd /home/tiago-franca/Desktop/php-projects"

Here is what the above code is Doing:
1. We’re creating a new file called .bashrc in the home directory.
2. We’re adding a line to the file that says “cd /home/tiago-franca/Desktop/php-projects”.
3. We’re saving the file.
4. We’re closing the file.

Similar Posts