# how to determine the location of entries while creating a single file or directory from terminal

I'm looking answers for very basic question in Linux environment.

Where to look for a entries related to that file or directory when we creating any file or directory from terminal ? for example:

 mkdir infinity


OR

 vi abc
cat > abc


and what will happens in the background when we creating right clicking on screen till creating any file or folder in desktop

any help will be appreciated.

• It is not quite clear what you mean with "entries". Are you referring to the file's metadata or the content? And where do you "right-click"? – AdminBee Apr 21 '20 at 10:20
• mkdir infinity will create a folder called infinity in your current directory. To check your current directory use pwd command. vi abc will try to open a file called abc in your current directory. cat abc will look for abc in your current directory and print out it's contents into stdout. When you create files and folders with GUI it does the same mkdir or touch commands in the background. If by entries you mean you want to know more about a file use file command, example file abc. – shiftas Apr 21 '20 at 10:23
• i understand linux is a file based system. and it keeps a records and make somewhere entries regarding our activity whatever we do. so i'm looking for those entries details whenever we create, update, read, delete any file or folder where it keep the records related to those files and directory. i mean in this process what will happen in the background – Yash Mangla Apr 21 '20 at 18:29
• basically i'm interested to see what will happen in background if any event trigger. – Yash Mangla Apr 21 '20 at 18:45
• do you mean the audit system? Try reading this ... – Murray Jensen Apr 22 '20 at 11:08

strace mkdir infinity