- ip addr show
Show me current IP.
ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet ###.#.#.#/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 8c:dc:d4:22:94:69 brd ff:ff:ff:ff:ff:ff
inet ###.###.#.###/24 brd 192.168.0.255 scope global noprefixroute eno1 //here I can check the IP
valid_lft forever preferred_lft forever
inet6 fe80::6aab:cab2:bdf:7f12/64 scope link noprefixroute
valid_lft forever preferred_lft forever
- su root
Change the user to root user.
[mozdef@localhost /]$ su root
Password:
[root@localhost /]#
It changed from mozdef to root.
- curl : Client URL
- url : Uniform Resource Locator, it it the mechanism used by browsers to retrieve any published resource on the web. It it nothing more than the address of a given unique resource on the web.
- yum : Yellowdog Updater Modified, it is a free and open source command-line package-management utility for computers running the Linux operating system.
- adduser root
- sudo gpasswd -a apl wheel
Granting Sudo privileges to a User(apl). If your new user should have the ability to execute commands with root(administrative) privileges, you will need to give the new user access to sudo (www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-a-centos-7-server).
sudo adduser root //If you are singed in as a non-root user who has been given sudo privileges
sudo gpasswd -a apl wheel
We can do this by adding the user(apl) to the whlle group(which gives sudo access to all of its members by default) through the gpasswd command.
gpasswd : Group PassWord, as every group in Linux has administrators, members, and a password.
- wheel
It makes installation fast for two reasons.
- All else being equal, wheels are typically smaller in size than source distributions, meaning they can move faster across a network.
- Installing from wheels directly avoids the intermediate step of building packages off of the source distribution.
Compare installing a Python packages below.
- There's build stage.
$ python -m pip install 'uwsgi==2.0.*'
Collecting uwsgi==2.0.*
Downloading uwsgi-2.0.18.tar.gz (801 kB)
|████████████████████████████████| 801 kB 1.1 MB/s
Building wheels for collected packages: uwsgi
Building wheel for uwsgi (setup.py) ... done
Created wheel for uwsgi ... uWSGI-2.0.18-cp38-cp38-macosx_10_15_x86_64.whl
Stored in directory: /private/var/folders/jc/8_hqsz0x1tdbp05 ...
Successfully built uwsgi
Installing collected packages: uwsgi
Successfully installed uwsgi-2.0.18
- It downloads directly and there's no build stage when pip finds a compatible wheel.
$ python -m pip install 'chardet==3.*'
Collecting chardet
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB 1.5 MB/s
Installing collected packages: chardet
Successfully installed chardet-3.0.4
'Linux' 카테고리의 다른 글
xsrf' argument missing from POST (0) | 2022.05.12 |
---|---|
Install pyenv on mac, activate (0) | 2022.03.31 |