Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ps aux | grep vlc
- pc 27636 2.1 2.3 1261964 90028 ? Sl 21:46 0:23 /usr/bin/vlc --started-from-file /media/pc/Everything/TV shows/Discovery Channel - The History Of Hacking.avi
- pc 28317 0.0 0.0 11748 2196 pts/0 S+ 22:05 0:00 grep --colour=auto vlc
- -c c selects the listing of files for processes executing the
- command that begins with the characters of c. Multiple commands
- may be specified, using multiple -c options. They are joined in
- a single ORed set before participating in AND option selection.
- $ lsof -wc vlc | awk '$4~"[0-9]r" && $5=="REG"'
- vlc 16532 terdon 16r REG 8,19 131338 69731703 /path/to/foo.avi
- $ lsof -wc vlc | awk '$4~"[0-9]r" && $5=="REG"' | grep -o '/.*'
- /path/to/foo.avi
- $ lsof -wc vlc | awk '$4~"[0-9]r" && $5=="REG"' | grep -o '[^/]*$'
- foo.avi
- pgrep -a vlc
- pgrep -a vlc | sed -r 's%^.*/([^/.]+)%1%g'
- qdbus org.mpris.MediaPlayer2.vlc
- /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata
- | grep "xesam:title:" | cut -c 14-
Add Comment
Please, Sign In to add comment