Blog

Viewing posts for the category Tech

[COMMAND LINE] Windows

Here is a selection of commands I find useful when using a Windows system.

Exchange files over LAN

A very neat trick to share files over a LAN.

[COMMAND LINE] Processes

Display currently running processes.

ps
ps -ef
ps aux
ps -ef | grep firefox # only information about a specific process

List running processes and resources consumption

top

Find program using file

lsof path/to/file

Find files used by program

lsof -c <program_name>
lsof -p <PID>

Which program is listening on port

lsof -i :<port>

Terminate a process

kill <PID> # PID Program IDentifier can be obtained from ps
killall <program_name>

[COMMAND LINE BASICS] FILES, NAVIGATION

When using the command line it’s useful to know how to move around and act on files.