Daily Linux Command: mkdir

Do you need to memorize Linux commands? Daily Linux Command: man The mkdir(1) command is used to create directories, with its argument being the path name of the new directory. ✦•———-Basic Usage———-•✦ Simply follow the command with the path of the new directory. It can be either a relative path or an absolute path. If … Read more

Python Learning: Tutorial on Obtaining File Paths/Directories

Python Learning: Tutorial on Obtaining File Paths/Directories

1. Implementation of Obtaining File Paths 1. Getting the Current File Path The __file__ variable has a problem: when the file is called by another file, __file__ is always the absolute path of the file; however, when the file is executed directly, __file__ is not always the absolute path of the file, but rather the … Read more

Basic Linux Practice Multiple Choice Questions – 04

Basic Linux Practice Multiple Choice Questions - 04

16. Question: You are working on a system and want to compile a program from source code. You realize you need some development tools. In which directory do you expect to find these tools? Option 1: /usr/bin Option 2: /opt Option 3: /usr/local/bin Option 4: /usr/include Correct Answer: 3 Explanation: Development tools, such as compilers … Read more