mkdir directoryname # Make directory touch filename # Make files cd dirname # Changing the directory cd .. # Going back to previous directory cd # Going to home Directory mv filename /Directory/filename # It will move the file from somewhere to other cp filename /directory/filename # It will copy the file from on to other less filename # This will print contents inside the file but only one page per time ls -a && ls -al # Prints all the files or folders inside directory even the hidden ones, same prints permissions for all even for hidden man command # To see manual-pages of the command or another way for command --help locate filename # To locate the file df # Used to see disk space to see space in megabytes df -m uname -a # See the distro details hostname # To see the name of the host or wifi hostname -i # To see ip address chmod # chmod +x filename to make file executable or chmod 777 filename to give file root permission
There might be more but these were upto my knowledge
touch command is the most basic one which many people misunderstand. The touch command is used to modify timestamps on a file, but it actually gives the effect of creating a new file.
touch filename - will create an empty file touch -a filename - change the access time only touch -c filename - if the file does not exist, do not create it touch -d filename - update the access and modification times touch -m filename - change the modification time only touch -r - use the access and modification timestamp of file touch -t - creates a file using a specified time
it creates a file and also can modify the timestamps
Beyond software development, I ask everyone to try and use a Linux distro as their primary desktop os. Benefits range from simple performance improvements to much better respect for your privacy in comparison to windows.
Permission values are 1,2 and 4 as shown below and why not 3 after 1 and 2? 4 → read permission 2 → write permission 1 → execute permission This is basing on the power of two, starting from zero.
2*0 = 1 → execute permission 21 = 2 → write permission 2*2 = 4 → read permission Due to this logic, there is 4 and not 3.
This will help to remember permission values easily.
Hi, Parth here. I am a student of Computer science pursuing B.Tech from JSSATE, Noida, Uttar Pradesh , India. I am a cyber security enthusiast and a web developer as well.
Lead Software Development Engineer based in Bengaluru. I love to create large-scale, distributed web/cloud applications with a particular passion for Go, Python, Java, JavaScript, Node.js, and AWS.
👋 Hey there, I am Waylon Walker I am a Husband, Father of two beautiful children, Senior Python Developer currently working in the Data Engineering platform space. I am a continuous learner, and sha
Liaison between tech and business. I free my mind by writing down some of my thoughts and feelings for the world to read. Read more: ethanosullivan.com
Nice, but misses out few
Like:
There might be more but these were upto my knowledge
touch
command is the most basic one which many people misunderstand. Thetouch
command is used to modify timestamps on a file, but it actually gives the effect of creating a new file.touch filename - will create an empty file
touch -a filename - change the access time only
touch -c filename - if the file does not exist, do not create it
touch -d filename - update the access and modification times
touch -m filename - change the modification time only
touch -r - use the access and modification timestamp of file
touch -t - creates a file using a specified time
it creates a file and also can modify the timestamps
Exactly!
most of the people will not use these options & they won't bother about timestamps, so I haven't mentioned them previously.
Thanks for sharing this!
Very Informative!
A great one to get some high-level understanding.
Thank you, Ojus :)
Am glad you liked it.
Beyond software development, I ask everyone to try and use a Linux distro as their primary desktop os. Benefits range from simple performance improvements to much better respect for your privacy in comparison to windows.
Yes, exactly!
Go details with linux diversity:
🕷 epsi-rns.github.io/system/2020/10/...
Thanks for sharing this!
Permission values are 1,2 and 4 as shown below and why not 3 after 1 and 2?
4 → read permission
2 → write permission
1 → execute permission
This is basing on the power of two, starting from zero.
2*0 = 1 → execute permission
21 = 2 → write permission
2*2 = 4 → read permission
Due to this logic, there is 4 and not 3.
This will help to remember permission values easily.
Thanks for sharing this!
Nice work, Rudrakshi!
Thank you :)
Nice post on fundamentals of Linux. Keep sharing such amazing posts.
Thanks, Parth :)
Am glad you liked it.
Quite Informative. Great going Rudrakshi!
Thank you!
Am glad you liked it.
Good start Rudrakshi
Thank you :)
Really a good article for beginners for those who don't know the basics of Linux, like me! Thank you very much for providing this article!!!
:-)
Thanks, glad to hear that.
File permissions have tripped up even the most seasoned user.
oh yes..
Amazing article 👍
Thank you so much :)
This is a staple starting guide for those who are getting into Linux like myself.
Thanks, glad to hear that!