55. La llegada de un vino y una cepa a tu vida

Como a veces ocurre con los libros, las películas e incluso con las personas, quien te presenta un vino o una uva y la forma cómo lo hace puede impactar de forma tremenda la apreciación que tienes de…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Controlling ls controlling the UNIX world

don't worry the console error is your friend

The command terminal can intimidate for the first time anyone they try to use it. The goal of this post gives you the confidence to start playing with the terminal with a simple but powerful command: ls.
-So…what is ls?
ls is a command that lists the content of a directory.
-That’s it?. Just that?
Yes, do you know the whole operative system is a directory?
OK, let me explain, the operative system in a simple summary is a series of ordered folders, subfolders, and files, some of then containing information like programs that we will use in different moments (google chrome), some directories contain files like the login information and so on.
Then you can search the folder’s content on whatever path in your computer.
ls needs a path to list the contents for example:
ls /home/user
but if you use ls without params, ls takes your current directory and lists its content.
What kind of content does ls show us?
Remember that the operative system is folders and files, so ls shows you the folders and files belonging to the specific directory.

Pro tip:
ls has superpowers! I invite you to read the manual of this command but i can’t leave without giving you a present:
what if I write ls *.c ?
-first, in this comand, I don’t give any path so ls takes the current directory like the path
- * is a wildcard and matches zero or more character(s) in a file (or directory) name.
so if you have in the current directory the next files ( you can list all of them using ls command)
-one.txt
-two.html
-three.c
-four.c
-five.txt
and you use the previous command ls *.c the result will be
-three.c
-four.c
You can use the wildcard like a filter so… what happens if I use ls f* ?

The result will be
-four.c
-five.txt
if you handle this command you can delete the correct file in the correct folder, and I will show you how in another post.

Add a comment

Related posts:

Posso tirar os sapatos?

Esse foi o termo que eu criei para descrever minha própria personalidade. Ser um incompetente social consiste em estar consciente de suas falhas de comportamento quando se relaciona com os outros e…

I am The Leader

Misal wanita nantinya akan menjadi ibu, dan seorang ibu pasti pengen punya anak yang sholeh sholehah, nah bagaimana cara kita mempengaruhi anak kira sendiri. Memimpin disini bukan berarti memimpin…

On White Masculinity and Territoriality

I am at a concert standing among a crowded sea of bodies. I am tall, thin, and white, and testosterone ensures that I am read as a man. I am not a man; I am a non-binary transfeminine person who…