Skip to content

Commit

Permalink
Linux Commands : Basics
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjacobmorris committed Dec 11, 2024
1 parent 3abfd1b commit 36dbbfd
Showing 1 changed file with 64 additions and 3 deletions.
67 changes: 64 additions & 3 deletions Linux_Commands_Shell_Scripting/LinuxCommands.md
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/

0 comments on commit 36dbbfd

Please sign in to comment.