Cheatsheet: Difference between revisions
→Commands
Line 582:
*ls
Append a character to each file name indicating the file type:
ls -F or ls --classify
* Executable files
/ Directories
@ Symbolic links
<nowiki>|</nowiki> FIFOs
= Sockets
> Doors
Nothing for Regular Files
List Symoblic Links:
ls -la
<pre>
lrwxrwxrwx 1 root root 11 Sep 13 14:57 mounts -> self/mounts
dr-xr-xr-x 3 root root 0 Sep 13 14:57 mpt
-rw-r--r-- 1 root root 0 Sep 13 14:57 mtrr
</pre>
*free
Line 595 ⟶ 615:
*smem
*nslookup
*dig
*mtr
*Misc
Find Sym Links:
find . -type l -ls
ls -la | grep "\->"
CPU Info:
lscpu
nproc
grep 'model name' /proc/cpuinfo | wc -l
Obtain the PID with a utility:
ls -l /proc/$(pgrep -n python)/exe
pidof ~~
ps ~~
= Flows =
|