Ubuntu screen recorder with audio- Obs-Studio

Ubuntu 20 have inbuilt recorder which we can be triggered by alt+ctrl+shift+ r But it does not record the voice to overcome the limitation I am exploring “OBS Studio” its installation steps are given at obsproject.com which I have used. Step 1) To check if “OpenGL” is available or not as OBS Studio needs openGL

Pip3 Install pip for python3

I have Ubuntu20 and by default if I check pip version I get it is for python2 But I want to use pip for pyhon3 and if I check pip3 I get following: Therefore I executed above command to have pip3 for python3 at my system : It displays a bit general information and asks

Explain the top command in linux

‚ÄčTop command is used to check server processes in Linux. Top command shows all running processes in current host. It displays the current system information and the processes information which includes: host-up-time average load tasks running no. of users logged in no. of CPU processes RAM utilisation lists all the processes running/utilized by the users

Check directory size

# To check size of partition df -h # To check size of directory du -s -h /var/log/ #To check every directory and file sizes under a dir. du -s -h /var/log/* #To check individual size du -s -h /var/log/lastlog

Install and configure lsyncd on centos

Introduction :- Lsyncd watches a local directory trees event monitor interface (inotify or fsevents). It aggregates and combines events for a few seconds and then spawns one (or more) process(es) to synchronize the changes. By default this is rsync. Lsyncd is thus a light-weight live mirror solution that is comparatively easy to install not requiring

Bash phpize command not found

[root@localhost gearman-1.0.2]# phpize bash: phpize: command not found This error comes as “phpize” command is not available on my system To fix this, install php-devel package. (Eg: CentOS on my box) [root@localhost gearman-1.0.2]# yum install php-devel

20 Useful GREP Commands

20 Useful GREP Commands grep -V Show the version of Grep command like “grep (GNU grep) 2.14” grep "search string" file_name Search for the given string. grep "search string" file_name_* Search given string in multiple files. grep -i "search string" file_name Ignore case search. grep -w "This is a test" file_name Full world search. grep

Common Linux commands

Archive.tar Create Archive tar cvf archive.tar dir_name/ Creating archive.tar Extract Files tar xvf archive.tar Extracting all files from archive.tar tar xvf archive.tar /path/to/file Extract a single file from archive.tar tar xvf archive.tar /path/to/dir/ Extract a single directory from archive.tar tar xvf archive.tar --wildcards '*.php' Extract group of files from archive.tar using –wildcards View Files tar

How to join variables in a bash script

To join/concatenate two variables in bash-script use following: 1) “${var1}_${var2}” # here we have joined var1 and var2 separated by ‘_’ 2) basePath=”/home/anj/” # base part. fileName=”myfile.txt” # fitename fileName=”${basePath}/${fileName}” # separated by / It is quite simple just place each variable adjacent to each other. ${basePath}/${fileName}” avoid variable substitution issues (if any).

How to write a custom command on linux

I want to create a custom command on linux (ubantu) which I need to execute regularly. steps are: create a shell-script place the shell script in /usr/bin/ dir name of shell-script file is custom command e.g I want kill node processes running by just typing “killnode” #!/bin/bash #fileName /usr/bin/killnode #echo "the folder is `pwd`" #echo