Start your webcam from command-line

On Linux system, if you have integrated or external web-cam. Then you don’t need a extra software for configuring, capturing it. VLC could do that for you. $ vlc v4l2:///dev/video0 In above example v4l2 (Video for Linux 2) is module or protocol used to start capturing video. /dev/video0 is device node for your web-cam. Once […]

What are the groups I am part of ?

Unfortunately there is no command to list names of groups which particular user is part. But you can use combination some commands to get that. One of the ways is rahul@rahul-Aspire-4736Z:~$ cat /etc/group | grep rahul adm:x:4:rahul cdrom:x:24:rahul sudo:x:27:rahul dip:x:30:rahul plugdev:x:46:rahul lpadmin:x:108:rahul rahul:x:1000: sambashare:x:124:rahul User “rahul” is part of groups shown above, first part is […]

Pattern matching – Part 1

Pattern Matching Part 1 – grep Today I am starting sessions on pattern matching utilities available on GNU / Linux systems. grep command does pattern matching on files. One of the beauty of commands of GNU / Linux systems is that it reads from standard input and writes to standard output. This makes commands work in […]