Python Pioneers: A Beginner's Guide ๐Ÿ‡ช๐Ÿ‡น
8.65K subscribers
346 photos
40 videos
24 files
64 links
Welcome to Python Pioneers: Empowering Ethiopian students to embark on their coding journey.

๐Ÿ“ข Channel: @python_pioneers
๐Ÿ‘ฅ Group: @python_pioneers_chat
Download Telegram
Hey everyone!

๐ŸŒŸ Stay tuned for our upcoming lesson on shell basics! Get ready to level up your tech skills.Don't miss out!

Don't forget to invite your friends too!

#ShellBasics
#PyPioneers

@python_pioneers
@python_pioneers
This media is not supported in your browser
VIEW IN TELEGRAM
"pwd" command "print working directory" แˆ›แˆˆแ‰ต แˆฒแˆ†แŠ• แŠฅแŠ•แ‹ฐ shell แ‰ฃแˆ‰ command-lines แŠฅแŠ•แŒ แ‰€แˆ˜แ‹‹แˆˆแŠ• แข

"pwd" แŠ• แŠ แˆตแŒˆแ‰ฅแ‰ฐแ‰ฝแˆ enter แˆตแ‰ตแˆ‰ แŠ แˆแŠ• แ‹ซแˆ‹แ‰ฝแˆแ‰ แ‰ตแŠ• working directory/ folder แ‹ซแˆณแ‹ซแˆแข
This can be particularly useful when navigating through different directories or when you need to reference the current location in your file system.

"clear" command แ‹จแ‰ฐแŒ แ‰€แˆแАแ‹ terminal clear แˆˆแˆ›แˆจแŒ แАแ‹แข You can use it if your terminal gets messy.
"exit" command แ‹จแ‰ฐแŒ แ‰€แˆแАแ‹ แ‹ฐแŒแˆž แŠจterminal แˆˆแˆ˜แ‹แŒฃแ‰ต แАแ‹แข

Next command "ls"...
#ShellBasics
#pwd

@python_pioneers
๐Ÿ‘2
This media is not supported in your browser
VIEW IN TELEGRAM
๐ŸŒŸ Hello Python Pioneers! Let's talk about the versatile 'ls' command and its various option.

#1. 'ls' - It stands for 'list'. It lists the files and directories in the current location. แ‹ญแˆ… แŠ แˆแŠ• แ‰ฃแˆˆแ‰ฝแˆแ‰ แ‰ต folder/directory แ‹แˆตแŒฅ แ‹ซแˆ‰แ‰ตแŠ• แ‹แ‹ญแˆŽแ‰ฝ แŠฅแŠ“ folders list แ‹ซแˆจแŒแˆ‹แ‰ฝแ‹ƒแˆ without argument แŠจแ‰ฐแŒ แ‰€แˆ›แ‰ฝแˆแ‰ต แˆ›แˆˆแ‰ต แАแ‹แข

Arguments are words or options that provide additional information to the command and modify its behavior.

#2. 'ls -a' - แ‹ญแˆ… แ‹ฐแŒแˆž list แ‹จแˆšแ‹ซแˆจแŒแˆแŠ• แ‹จแ‰ฐแ‹ฐแ‰ แ‰ แˆ›แˆˆแ‰ตแˆ hidden แ‹แ‹ญแˆŽแ‰ฝแŠ• แАแ‹แข Hidden files แˆแŠ•แˆ‹แ‰ธแ‹ are those which begin with "."

#3. 'ls -F' - แ‹ญแˆ…แŠ• argument แŠจ ls แŒ‹แˆญ แˆตแŠ•แŒ แ‰€แˆ แ‹ฐแŒแˆž it helps us to differentiate between files and folders. แˆ›แˆˆแ‰ตแˆ folder แŠจแˆ†แА แ‹จfolder แˆตแˆ แˆ˜แŒจแˆจแˆป แˆ‹แ‹ญ forward slash "/", file แŠจแˆ†แА แ‹ฐแŒแˆž แˆตแˆ แ‰ฅแ‰ป list แ‹ซแˆจแŒ‹แˆแข

#4. 'ls -l' - For a detailed listing that includes file permissions, owner, size, and modification date.

แˆตแˆˆ file permission แ‰ แ‰€แŒฃแ‹ญ แŠฅแŠ“แ‹ซแˆˆแŠ•แข

แŠฅแŠ“ แ‹จแ‰ฐแˆˆแ‹ซแ‹ฉ arguments แŠจ ls แ‰ แ‹ƒแˆ‹ แ‰ แˆ˜แŒ แ‰€แˆ outputแŠฃแ‰ฝแˆแŠ• customize แˆ›แˆจแŒ แ‰ตแ‰ฝแˆ‹แˆ‹แ‰ฝแˆแข These are just a few examples of them.

#ShellCommands
#ShellBasics

@python_pioneers
@python_pioneers
๐Ÿ‘2โค1๐Ÿ”ฅ1
Here are the yesterday's multiple-choice questions about basic shell commands with their answers:

1. What does the command "ls" do in the shell?
Answer: a) Lists all files and directories in the current directory

2. How do you display the current working directory in the shell?
Answer: b) pwd

3. What command would you use to exit from the shell?
Answer: c) exit

4. How do you list all files in the current directory, including hidden files?
Answer: a) ls -a

5. What is the purpose of the "pwd" command in the shell?
Answer: a) Print the working directory

6. What command would you use to list files in a specific directory?
Answer: c) ls /path/to/directory

7. How do you list files in a directory in long format, including details like file permissions and file size?
Answer: a) ls -l

8. What does the "-F" flag do when added to the "ls" command in the shell?
Answer: c) Appends a symbol to identify the type of each entry

9. When using the "ls -F" command, what symbol is added to directories?
Answer: a) /

10. What symbol does the "-F" flag add to executable files?
Answer: b) *


Keep on working!

#ShellBasics

@python_pioneers
This media is not supported in your browser
VIEW IN TELEGRAM
Shell Commands Quick Guide

1. cd (Change Directory): This command is used to navigate between different directories in the shell.

แ‹ญแˆ… command แŠจแŠ แŠ•แ‹ต directory แ‹ˆแ‹ฐ แˆŒแˆ‹แ‹ แŠฅแŠ•แ‹ตแ‰ตแˆ„แ‹ฑ แ‹ญแˆจแ‹ณแ‰ฝแ‹ƒแˆแข You can move to a specific directory by typing cd directory_name.

for example แ‹ซแˆ‹แ‰ฝแˆแ‰ แ‰ต directory แ‹แˆตแŒฅ แ‹ˆแ‹ณแˆˆ directory แˆˆแˆ˜แŒแ‰ฃแ‰ต แŠจแˆแˆˆแŒ‹แ‰ฝแˆ:
cd directory_name 

2. mkdir (Make Directory): แ‹ญแˆ… command แ‹ฐแŒแˆž แŠ แ‹ฒแˆต directory/folder แŠฅแŠ•แ‹ตแ‰ตแˆแŒฅแˆฉ แ‹ญแˆจแ‹ณแ‰ฝแ‹ƒแˆแข Simply type
mkdir new_directory_name

3. rmdir (Remove Directory): แ‹ญแˆ… directory แ‹จแˆšแŒ แ‰…แˆ›แ‰ฝแˆ แ‹ฐแŒแˆž empty/ แ‰ฃแ‹ถ directory remove แˆˆแˆ›แˆจแŒ แАแ‹แข แАแŒˆแˆญ แŒแŠ• folderแŠก empty แŠซแˆแˆ†แА it won't work.

non-empty directory delete แˆˆแˆ›แˆจแŒ additional option แˆ›แˆˆแ‰ตแˆ attribute แˆ˜แŒ แ‰€แˆ แŠ แˆˆแ‰ฃแ‰ฝแˆ

แ‹ญแ‰€แŒฅแˆ‹แˆ...

~ Remember: Practice is key to mastering these commands!
Happy coding! ๐Ÿš€โœจ

#ShellCommands
#ShellBasics

@python_pioneers
@python_pioneers
โค1
This media is not supported in your browser
VIEW IN TELEGRAM
๐Ÿ“ข Attention all shell beginners! ๐Ÿš

Want to learn the basics of using the shell in a hands-on way? Check out our practice video where we guide you through creating a folder named 'new_folder' and then creating a 'sample.txt' file using nano.
ls
cd
mkdir new_folder
cd new_folder
nano sample.txt
cat sample.txt
exit

Practice along with us and sharpen your shell skills! ๐Ÿ’ป๐Ÿ‘

แ‹จแˆ˜แˆ›แˆชแ‹ซ แ‰ฅแ‰ธแŠ› แˆ˜แŠ•แŒˆแ‹ต แˆ˜แˆˆแˆ›แˆ˜แ‹ต แАแ‹! แŠฅแˆตแŠซแˆแŠ• แ‹จแ‰ฐแˆ›แˆญแŠ“แ‰ธแ‹แŠ• แˆ˜แˆฐแˆจแ‰ณแ‹Š แ‹จshell commands practice แŠ แˆญแŒ“แ‰ธแ‹แข

#ShellBasics #PracticeMakesPerfect #NanoTutorial

@python_pioneers
@python_pioneers
๐Ÿ‘4๐Ÿ”ฅ1
Hello everyone!

๐ŸŒŸ Stay tuned for our upcoming lesson on shell basics! Get ready to level up your tech skills.Don't miss out!

Don't forget to invite your friends too!

#ShellBasics

@python_pioneers
โค1
...cont'd

แŠ แ‰ฅแ‹›แŠžแ‰น modern tools graphical user interface (GUI) แ‹ญแŒ แ‰€แˆ›แˆ‰ But command-line user interfaces (CLUIs) still have their place. แŠฅแŠ“แˆ Computer แ‹แˆตแŒฅ happen แŠฅแ‹ซแˆจแŒˆ แˆตแˆ‹แˆˆแ‹ แАแŒˆแˆญ แ‹ญแ‰ แˆแŒฅ แˆ˜แˆจแ‹ณแ‰ต แ‹จแˆแŠ•แ‰ฝแˆˆแ‹ CLUIแŠ• แ‰ แˆ˜แŒ แ‰€แˆ แАแ‹แข

แˆˆแˆแˆณแˆŒ :-

แŠฎแˆแ’แ‹แ‰ฐแˆซแ‰ฝแˆ แ‹แˆตแŒฅ folder create แˆˆแˆ›แˆจแŒ แŠจแˆแˆˆแŒ‹แ‰ฝแˆ create folder แ‰ฅแˆ‹แ‰ฝแˆ แ‹จแˆ†แА window แ‹ญแˆ˜แŒฃแˆ แŠจแ‹› แ‹จfolderแŠ• แˆตแˆ แ‰ตแ…แ‹แˆ‹แ‰ฝแˆ then boom! folder create แŠ แˆจแŒ‹แ‰ฝแˆ แˆ›แˆˆแ‰ต แАแ‹ แฃ แˆตแˆˆแ‹šแˆ… แŠฅแ‹šแˆ… แŒ‹แˆญ แ‹จแ‰ฐแŒ แ‰€แˆ›แ‰ฝแˆแ‰ต GUI แАแ‹แข

But there is another way you can create a folder, แ‹จwindows user แŠจแˆ†แŠ“แ‰ฝแˆ CMD แ‹จแˆšแ‰ฃแˆ command-line interpreter แŠ แˆˆ actually it is not a shell, แŠจแ‹› แ‹จCMD window แˆฒแˆ˜แŒฃ

>mkdir folder_name 

แ‰ฅแˆ‹แ‰ฝแˆ execute แˆฒแ‰ณแˆจแŒ‰ you will get the same result, a folder is created.
แŠฅแŠ“แˆ how to access files how to manipulate them in a command-line แˆแŠ“แˆแŠ• แ‹จแˆšแˆ‰แ‰ตแŠ• แ‰ แ‰€แŒฃแ‹ญ แŠฅแŠ“แ‹ซแˆˆแŠ•แข

#CommandShell
#ShellBasics

@python_pioneers
โค1๐Ÿ‘1