Linux commands to create file and directory

Very important useful commands to create a file and directory in linux, so first lets go with how to create file in linux or linux command to create a file,

1. Create a file in linux  go to terminal and open it and run this command can create a any file name




sudo nano filename.php

sudo nano filename.html

2. Create a directory in liux

sudo mkdir directoryname
3. view file

sudo cat filename

No comments:

Post a Comment

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...