DEV Community

Working with Files in Linux πŸ’»

Seb on October 17, 2021

Hey Dev community! πŸ˜† After weeks of exams and dealing with imposter syndrome, I am back with another short article on 'file commands' in Linux. Th...
 
abcsxyz profile image
AbcSxyZ

ONLY builtin commands depends upon the shell program you are running, other commands depend on the system.
cd is a builtin (it modifies state of the shell), ls, cat and any other commands of the article are executable installed on the computer.

Some softwares have a GUI version, all of them can be used in a terminal, with a more or less advanced CLI.

I've no idea what "shell tools" mean in this context.

Just to let you know, I wrote a shell as a school project, I've some internal understanding of the topic.

 
yhoung24909577 profile image
obiabo Immanuel

Wow this is amazing thanks a lot sir

Thread Thread
 
abcsxyz profile image
AbcSxyZ

Availability of tools do not depends of the used shell, but depend of program installed on the computer.

Commands may depends if theyr are builtin, like cd. All other commands just require to be installed.

Collapse
 
yhoung24909577 profile image
obiabo Immanuel

ls is restricted on cmd it dosnt work cmd uses dir but ls works on other terminals

Collapse
 
moopet profile image
Ben Sinclair

Hasn't cmd been replaced almost entirely with Powershell now? I know it's still there, but all the menu links and things are for Powershell since Windows 10.

If you want to be nitpicky, cd also doesn't take you into "any directory you want", but rather "any directory that you have permissions for" and not always then, depending on how it's mounted.

Thread Thread
 
yhoung24909577 profile image
obiabo Immanuel

wow thats awesome

Collapse
 
cerlancism profile image
Chen Yu

If you have git installed you can use git bash for these commands on Windows.

Collapse
 
jessekphillips profile image
Jesse Phillips

Interesting that you mention head, but not tail. Tail has great value for log files.

Collapse
 
linuxseb profile image
Seb

LOL I KNOW. I honestly couldn't tell you why

Collapse
 
pentastra profile image
Pentastra

Hey Seb, great content for beginners. I just noticed typo in point 6 mdkir (it should be mkdir).

Collapse
 
michaelcurrin profile image
Michael Currin

Indeed. Heading needs fixing.