1: Command Line Python(Challenge: Working with the Command Line)

来源:互联网 发布:大疆无人机香港知乎 编辑:程序博客网 时间:2024/05/22 03:24

In the past few missions, you learned how to navigate the filesystem, create and modify files, and work with Python on the command line. You learned that it isn't enough to just know how to program in Python -- you also have to know how to modify and execute Python programs on your computer.

In this challenge, you'll pull all of the concepts from the past few missions together to create and run a Python script on the command line. Here's a rough outline of what you'll do:

  • Create a Python script.
  • Create a virtual environment.
  • Change file permissions.
  • Execute a Python script from the command line.

Instructions

  • Familiarize yourself with the current folder.
    • Change out of the current directory, then back in.
    • Print the path of the current folder to the standard output

/home/dq$ cd ..                                                                                                                   
/home$ cd ~                                                                     
/home/dq$ pwd                                                                   
/home/dq                                                                        
/home/dq$                                                                       
           

0 0