mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-24 11:16:27 +08:00
parent
d623fee2e0
commit
2a68e1aab5
1 changed files with 2 additions and 0 deletions
|
@ -151,6 +151,8 @@ Notes:
|
|||
- For a simple web server for all files in the current directory (and subdirs), available to anyone on your network, use:
|
||||
`python -m SimpleHTTPServer 7777` (for port 7777 and Python 2) and `python -m http.server 7777` (for port 7777 and Python 3).
|
||||
|
||||
- For running a command with privileges, use `sudo` (for root) or `sudo -u` (for another user). Use `su` or `sudo bash` to actually run a shell as that user. Use `su -` to simulate a fresh login as root or another user.
|
||||
|
||||
|
||||
## Processing files and data
|
||||
|
||||
|
|
Loading…
Reference in a new issue