-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3abfd1b
commit 36dbbfd
Showing
1 changed file
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,75 @@ | ||
# Linux Commands | ||
|
||
## Ubuntu | ||
## Package Management | ||
|
||
### ```apt-get``` | ||
|
||
* ``` apt-get clean ``` - removes the downloaded .deb packages from cache in /var/cache/apt/archives/ | ||
|
||
* ``` apt-get autoclean ``` - cleans the local repository of retrieved packages but only for the packages that you have uninstalled or those with no newer versions available. | ||
* ``` apt-get autqoclean ``` - cleans the local repository of retrieved packages but only for the packages that you have uninstalled or those with no newer versions available. | ||
|
||
* ``` apt-get autoremove ``` - removes the unneeded packages that were once installed as a dependency | ||
|
||
|
||
## Process Management | ||
|
||
### `killall` | ||
used to kill all process by name or command. | ||
|
||
### `pstree` | ||
Display a tree view of processes | ||
|
||
### `htop` | ||
It is similar to top, but allows you to scroll vertically and horizon‐ | ||
tally, and interact using a pointing device (mouse) | ||
|
||
## System Information | ||
### `uname` | ||
|
||
## User and Group Management | ||
|
||
### `useradd` | ||
|
||
### `userdel` | ||
|
||
### `usermod` | ||
|
||
### `passwd` | ||
|
||
### `id` | ||
|
||
### `groups` | ||
|
||
### `groupdel` | ||
|
||
### `groupadd` | ||
|
||
## Network Configuration and Monitoring | ||
|
||
### `netstat` | ||
|
||
### `ip` | ||
|
||
### `ss` | ||
Used to show "Socket Statistics" . | ||
|
||
* `ss --summary` - To get a summary | ||
* `ss --process` - To get list process info like PID along listening ports etc | ||
|
||
### `traceroute` | ||
|
||
### `ssh` | ||
|
||
### `nc` | ||
|
||
## Misc | ||
|
||
### ```printenv``` | ||
* Displays all the environment variables delared | ||
* Displays all the environment variables delared | ||
|
||
|
||
## References | ||
* https://substack.com/@rockybhatia/note/c-79923887?r=40ln3j | ||
* Linux man pages | ||
* https://www.geeksforgeeks.org/ss-command-in-linux/ | ||
* https://www.cyberciti.biz/faq/unix-linux-killall-command-examples-usage-syntax/ |