英文:
How to remove .txt on a .zshrc file using Z shell on a mac?
问题
如何移除.txt
文件末尾?
英文:
I had to edit my .zshrc file and it was locked, so essentially created a copy, then edited and deleted the original .zshrc file. I have renamed my '.zshrc copy' file to just '.zshrc' however when I ls -a it shows as .zshrc.txt
How do I remove the .txt end?
答案1
得分: 1
你可以使用mv
命令来重命名文件,以删除.txt
扩展名。
cd ~
cp .zshrc backup_zshrc
mv .zshrc.txt .zshrc
如果已经存在,它会覆盖它。
英文:
You can rename the file using the mv command to remove the .txt extension
cd ~
cp .zshrc backup_zshrc
mv .zshrc.txt .zshrc
overwrite it if it already exists
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论