Cafè Linux – Telegram
Cafè Linux
580 subscribers
14 photos
5 videos
31 files
31 links
👾 ( Cafe Linux - C, Linux, BASH and so on )

🎥 YT: https://www.youtube.com/@TheLinuxCafe

( "The quieter you become, the more you are able to hear" )

Buy me a Coffee : { 0xbc8e52af7b46461b8076085Be771F465E26A9Dfd } - BEP20/USDT

whoami: @firstTarokh
Download Telegram
https://news.1rj.ru/str/+fVJ4fVFeyhI0OWY0

دوستان لینک گروه کانال، اگر دوست داشتید جوین بشید که بهتر و راحت تر بتونیم با همدیگه کانکت باشیم
4
Cafè Linux pinned «https://youtu.be/wBPCyZ3gk5w?si=nKIe2lzAjK6wWdG6»
درود همگی دوستان،
تا وقتی هدست و سیستم من منفجر نشه ویدیو هارو ادامه میدیم 🗿

خواستم در خصوص جنگ این اطلاع رو بدم به همه‌.
❤‍🔥7🤣3🤝1
سلام به همگی 🌟
من هنوز زنده ام 🥇
وضع اینترنت ها درست بشه فعالیت رو ادامه میدیم، بهتر از قبل.

ممنون از همراهی همه

#tCafeLinux @tcafeLinux #notice
❤‍🔥71
💯7
Cafè Linux
Voice message
وویس درمورد ادامه روند کانال و ویدیو ها ⚰️
4
Cafè Linux pinned «https://youtu.be/4E9dYODo3JI?si=Y-6vJoSL-SawnT0q»
Cafè Linux
Where can I find my BLOCK DEVICES
/dev

Block devices live here on every Linux System
❤‍🔥1
Cafè Linux
Where to find the log files on a Linux server ?
/var/log

All of the System Logs live here on a Linux System

برای خوندن لاگ های سیستم باید داخل این دایرکتوری دنبالشون بگردیم
❤‍🔥1
Cafè Linux
a Command for counting words in a text-file
wc -w

"wc" command has -w flag which helps us count the words in a file.

از فلگ -w کامند wc میتونید استفاده بکنید برای شمردن کلمه های داخل یک فایل
Cafè Linux
A command for searching different patterns in a file or text.
GREP!

With "grep" you have the magic!
A separate video will be recorded.

با دستور grep میتونید دنبال pattern های خاص بگردید داخل یک فایل - یه ویدیو برای grep رکورد میکنم.
Cafè Linux
what is the entry point in a C program ?
main function

Entry point of every C program
Cafè Linux
Will this code compile ?
It will not compile

A void function cannot return anything.

فانکشن void نمیتونه return کنه. کامپایل نمیشه.
Cafè Linux
Will this code compile ? (TRICKY QUESTION)
Yes,
It acts like main is returning int by default, and it compiles with a warning.

کامپایل میشه و main رو اینطوری در نظر میگیره که داره int برمیگردونه . ولی اینطوری کد ننویسید بهتره.
Cafè Linux
Which one is correct ?
BOTH
جفت حالت ها درسته
Cafè Linux
Is "something" printed after running the code ?
It will not print because we are returning before it. and return is a sign for the function to exit.

قرار نیست something پرینت بشه چون قبلش return کردیم.
Cafè Linux
Is this code correct ?
On most systems, especially UNIX/Linux, the return value of main() becomes the program's exit status.

so a valid exit code is between 0 to 255 (8-bit Integer)

چون return code فانکشن مین در سیستم های لینوکسی میشه همون exit code برنامه. یه محدودیتی این وسط براش هست :) نمیشه هرچیزی خواستید برگردونید. و رینجش رو بالا نوشتم.

ولی از نظر C اون کد کاملا درسته و صرفا جایی که کد رو ران کردید تاثیر گذاره
#notice

جواب کوییز ها
کوییز های جدید میزارم
THANKS BLOKES 👾
6