cat filename | sort | uniq
sort will sort the lines and
uniq will remove adjacent duplicate lines.
To count the number of repetition of each line
cat filename | sort | uniq -c
cat filename | sort | uniq
cat filename | sort | uniq -c
.a files are just archive of .o object files. You need to just extract the files from the archive and package them as a shared object (.so).
ar -x myarchive.a
gcc -shared-Wl,-soname,mysharedlib.so*.o -o mysharedlib.so
pgrep -l [pattern]
pgrep -l workoutput
217 kworker/u:3
218 kworker/u:4
219 kworker/u:5
863 NetworkManager
900 ./a.out work
pkill [pattern]
sshfs username@hostname:/folder /mountfolder
fusermount -u /mountfolder
vim -d file1 file2
ctrl+w ctrl+w - switch windows
do - diff obtain
dp - diff put
[c - previous difference
]c - next difference
:diffupdate - diff update ;)
:syntax off - syntax off
zo - open folded text
zc - close folded text