challenges icon indicating copy to clipboard operation
challenges copied to clipboard

Using python to implement standard UNIX command line tools like cp, cat, ls etc

Open mridubhatnagar opened this issue 8 years ago • 10 comments

Your own terminal in Python

mridubhatnagar avatar Nov 20 '17 05:11 mridubhatnagar

that's cool

bbelderbos avatar Nov 20 '17 08:11 bbelderbos

I really like the idea of this challenge since it takes some of the "mystery" out of the UNIX toolbox when you know how the tools work. I also think it's a good way to promote/introduce the UNIX philosophy in a sort of low key way.

ErikOShaughnessy avatar Dec 18 '17 16:12 ErikOShaughnessy

That is cool! We had some Bites on individual commands like: simulate a tail or complete this program to work like wc. Any other commands we can do? I think they fit well in Bites. Or was this to make a argparse interface to fire them off based on the command you give it?

pybites avatar Aug 29 '18 08:08 pybites

I'd start with the UNIX basics (in no real order):

  • cat
  • ls
  • grep
  • ps
  • kill
  • wc
  • basename
  • chmod / chown
  • col
  • cp
  • df
  • du
  • find
  • head / tail
  • jobs
  • less/more/pg
  • ln
  • man
  • mesg / talk
  • mv
  • mail
  • nm
  • tar
  • tr
  • sort
  • uniq
  • rm
  • w
  • wc
  • who
  • xargs
  • zip/unzip

JnyJny avatar Aug 29 '18 13:08 JnyJny

@pybites I don't remember weather that time I thought of argparse or not. Intent was if we can build a shell using Python.

mridubhatnagar avatar Aug 29 '18 13:08 mridubhatnagar

@bbelderbos how about this one for January? Needs brainstorming though.

mridubhatnagar avatar Dec 25 '18 18:12 mridubhatnagar

Sounds fun, thanks

pybites avatar Dec 25 '18 19:12 pybites

https://sj14.gitlab.io/post/2018-07-01-go-unix-shell/

pybites avatar Jan 07 '19 09:01 pybites

Hello, I would like to give this a shot! Will be starting with some of the basic commands like, cp,cd,ls,cat,clear,rm,rmdir,mkdir, etc. Although not limiting to these alone!

sanikachavan5 avatar Oct 11 '20 07:10 sanikachavan5

Thanks @sanikachavan so this would be to deliver a code challenge for us: write up, template code, solution code and if possible some tests to verify user's solution. Can you do that?

bbelderbos avatar Oct 11 '20 10:10 bbelderbos