OS/Linux (7) 썸네일형 리스트형 [kill process] How to find the Process ID and Kill it Step 1 : Find the Process ID(PID) of the program There are several ways we can use for finding the PID of a process. # If we know the name of the process pidof # Returns all the running process on the system ps aux | grep -i "name of our desired program" ps aux command returns all the running process on the system. And the grep afterwards shows the line which matches with the program name. ps au.. [venv] How to use Virtual Environment with Built-in venv module Step1 : Creating and activating a new virtual environment $ python3 -m venv project_env $ source project_env/bin/activate We can create virtual environment with system-packages(global installation of Python packages). $ python3 -m venv project_env --system-site-package Step2 : Check installed packages on virtual environment $ pip install pytz $ pip list Package Version ------- ------- certifi 20.. [pipenv] Easily Manage Packages and Virtual Environments 1. What is Pipenv? Pipenv is a tool that aims the best of all packaging worlds to the Python world. It automatically creates and manage a virtualenv for our project, as well as add/removes packages from our Pipfile as our install/uninstall packages. Pipenv is primarily meant to provide users and developers of application with an easy method to setup a working environment. 1.1 What is Pip? Pip is.. [python] Python Scripts 1. Shell Variables Unlike Python, the method of defining a variable through the command language sets the variable name only in uppercase letters. Because the shell destinguishes the command from the parameter options based on the blanks, it is marked with "" if there is a blank in the value of the variable. In addition, the assignment operator must be defined in the variable name without spaces.. [Theorem] Standard Streams/File Descriptors 1. Standard Streams A stream refers to the flow of data, and all processes in progress interact with the environment through the stream. And process refers to a program being executed. A parent process is a process that occurs before other processes, and a child process is a process that runs after the parent process. Standard Streams refers to input/output channels that are preconnected between.. [Theorem] Redirection/Pipeline 1. Redirection Redirection is a common instruction that allows a computing system to change the stdout of a standard stream to a custom location. The location can be specified through > operator, and it is a job to save the results performed through the command as a file. A simple redirection operator is a task of erasing data from an existing file and rewriting the contents. To add new data to .. [Theorem] Owner/Permissions 1. What is Owner? Owner refers to a person who uses a computer system in a computing environment. Users should attempt to authenticate for purposes such as security, login history, and resource management. When attempting to authenticate, the user must have an account and user name, and use the user interface to access the system and process authentication. There are many users connected to one .. 이전 1 다음