Python Operating System Version 2.1.9!
Commands:
cd - change directory
ls -list the contents of the current working directory
pwd - show the current print
mkdir - make directory
mkf - make file
rm - remove a file or directory
exit - exit
editf - edit file
help - shows commands and thier uses
echo - prints first argument
function - make your own function
eracef - eraces a file
apps - view and use apps
openf - read a file
cpp - compile c++ file
python - python3 interpreter
clear - clear the screen
./ - execute a file
cp - copy
mv - move
$(var name) = (value) - define variable that you can use in any command
Please comment any ideas or bugs!
https://repl.it/upgrade/hg0428
My other posts:
https://repl.it/talk/share/Python-Auto-correct/21307
https://repl.it/talk/share/Secret-Message-encoderdecoder/21306
https://repl.it/talk/share/Information-based-AND-brute-force-Password-Cracker/23116
Now you can make your own functions and make Variables!!
WOW!
Thanks
@TristanMisja
Thank [email protected]
bruh this is the best, me upvote
vouch
Traceback (most recent call last):
File "main.py", line 8, in
reset()
File "/home/runner/NTZfc7135eL/reset.py", line 8, in reset
open("/home/runner/FIlesystem/funct.txt", "w").write("")
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/FIlesystem/funct.txt'
What did you do to cause that?
@BetaaStudiosADD VIM
Can't make that with python.
Python limits what you can do when accepting input. With python, you can only get input after they press enter, if I was using C, I could/would make [email protected]
add whoami
One thing, you forgot to make an option to exit the repl/shell/os entirely like exit in bash.
I added that
@Highwayman
is this a troll post?
you can just call os.system(command here) and do the exact same thing as this, without the 20000 hardcoded lines.