Posts

Showing posts with the label To Create a file

Basic Commands in Linux - To display list of files and folders in a directory or folder

ls    ls is used to display the list of files in current folder. here you can see only few option . To know more options please comment below. ls - list of files in current folder. ls  ls -a - this will list all the files including hidden one. hidden files will start with . (.filename.txt) . ls -a ls -l - this will display size,access,owner,date modified details of files or folders ls -lrt

Basic Commands in Linux - To create a file

Touch     Touch is used to create an empty file, Touch can also be used to change the date and time of the file. touch [filename]  - This will create an empty file. touch bill touch -t mmddhhmm [filename] - this command will change the date and time of the file. touch -t 10101213 bill