Skip to main content

Posts

Showing posts from August, 2020

Hard and Soft Links in Linux 2020|how to create soft link and hard link in linux|

 Symbolic Links or sym Links ----------------------------------------- two types of sym links --------------- 1.softlink 2.hard link 1.soft link -------------------- ln -s ~/ created for accross file sysytem  Inode address is different soft links are broken  2. Hard Links ------------------------ ln ~/ created for the files in local system Inode address is different  file permissions will be same for both  ls-l  stat file name  du -h file name 

Record script using bad boy tool 2020|Jmeter script recording using badboy tool and validate script|

Apache JMeter Script Recording with BadBoy|How to Record script using BadBoy tool|  Download tool :https://badboy1.software.informer.com/download/ Recordig using bad boy tool  using for mostly .net and java applications there are 3 steps to actually getting a load test running with Badboy: 1. Recording your script. 2.Parametrizing your script with a lot of users and their associated user information,  and setting think times in the script. 3.Running the script with all your users, and gathering and analyzing the results,  hopefully in a graph format.

Umask and system commands in Linux|if config network commands|

Umask and system commands in Linux|if config network commands| umask is a variable available per linux system user based on which his files/folder permissions will be assigned by default,default umask value is 0002. ----------------------------------------------------------------------------------------------------------------------------- user/system commands whoami = gives you current user of the machine logname = current user of the machine. who = shows all the users currently accessing the machine  users = only gives space separated usernames currently logged in. uname = operating system name uname -a = gives full details of the operating system. hostname = gives name of the computer hostname -i = ip address ls -l | more = displays by page the list of files. man command-name = man stands for manual and can get information about any linux command. ---------------------------------------------------------------------------------------------------------------------------- networki...

Files and Folders Permissions In Linux|How to giveFiles permissions In Linux|Linux commandsforDevops

  Files and Folders Permissions In Linux|How to giveFiles permissions In Linux|Linux commandsforDevops Files and Folder permissions: ------------------------------------------------------------------------------------- Files and folders security is major part in any operating system including linux Linux is an Multi-User operation system where various different users can parallely can use the machine and underlying resources. this is the basic requirement of Linux to built-up some security features   in handling and protecting files and folders when multiple users accessing the machine. If one user is accessing Files and Folders in linux the owners or created user should have all rights to protected to be accessed/modified by any other user of the Linux System. the whole process can be achieved by Using Files  and Folder Permissions provided by Linux.  The files/folders we create in linux by default we dont need to assign permissions. Linux is granting permissio...

Linux Commands|tail-head-cat-echo-stat|Top 20 Linux commands|Linux commands For Devops 2020|

  Linux Commands|tail-head-cat-echo-stat|Top 20 Linux commands|Linux commands For Devops 2020| some basic commands how to create files and directories cat : ---------------------------------------------------- cat command allows us to create single or multiple files, view contain of file,concatenate files and redirect output in terminal or files concatenate files and redirect output in terminal or files. echo "hi" filename echo "end" filename "" =overide redirect the output on to the file ""=append the output onto the file ctrl+d head =is used for displaying the contents of the file from top to by default 10 lines head -n filename = n lines from top use tail : -------------------------------------------- tail is especially used to see log files of an application. tail filename = displays the bottom 10 lines of the file tail -n filename=display n lines from the bottom tail -10f filename = file stands for float on the file. display the f...

Linux commands Top 10 |rm/rm-f/ls-a/rm-r/touch/ls*a|T|most used linux commands in Devops 2020|

  Linux commands Top 10 |rm/rm-f/ls-a/rm-r/touch/ls*a|T|most used linux commands in Devops 2020| what is linux why we need to use linux some basic commands how to create files and directories cat : cat command allows us to create single or multiple files, view contain of file,concatenate files and redirect output in terminal or files concatenate files and redirect output in terminal or files. echo "hi" filename echo "end" filename ">" =overide redirect the output on to the file "<"=append the output onto the file ctrl+d head =is used for displaying the contents of the file from top to by default 10 lines head -n filename = n lines from top use tail : tail is especially used to see log files of an application. tail filename = displays the bottom 10 lines of the file tail -n filename=display n lines from the bottom tail -10f filename = file stands for float on the file. display the flow of output from the file. file filename = shows t...

Linux Commands for Copy|Move cp - mv -tr| |Top 15 Linux commands|Linux commands For Devops 2020|

  Linux Commands for Copy|Move cp - mv -tr| |Top 15 Linux commands|Linux commands For Devops 2020| .how can we use regular expression .how to create directories including the parent .how to create a file and folder .File Statstics .How to view Hidden Files 1. * = matches any no of any characters 2. ? = matches any single character 3. {} = range of input ------------------------------------------------------------------------------------------------------------------------------------- cp file1 path/filename copy mv =is used for moving files/folders from one location to another It can also be used for rename also mv -R ~$ mv login/enter name/ login/enter/names rename ------------------------------------------------------------------------------------------------------------------------------------- tr = is used for deleting,replacing or changing to upper or lower letters of a given character delete or replace works on only one character echo "Good night" | tr M E

Linux User Management Commands 2020|how to create user in Linux|switch user|add user|view user

  Linux User Management Commands 2020|how to create user in Linux|switch user|add user|view user User Management in Linux Two types of users in linux: --------------------------------------------------- 1.Root User 2.Normal User 1. Root User = There is only one root user for a Linux System and its created by default The root user has total control of the Linux System like 1. Managing all the system resources 2. File Management 3. User Management 4. Network Configurations 5. System Configurations &Software Installations 2. Normal User = Any other user added by the ROOT will becomes Normal User. They has access to his home directory only. To enter root ----------------------- sudo su - (or) sudo su root To add user --------------------- adduser username To view user ---------------------- id username switch user ----------------------- suso su username switch user via gui ----------------------- super user ------------------- sudo su - To see how many u...

Linux commands for creating group|adding user to group|view the group|change the linux password|

  Linux commands for creating group|adding user to group|view the group|change the linux password| 1.sudo adduser --uid 2003 --home /home/gothome got id got ls /home 2.how to see information about the user..? id username 3. how to see user in how many groups..? groups got 4.how to add group ..? sudo groupadd 5. how to add user to particular group ..? sudo usermod -aG ben got groups got 6.to see the added user details cat /etc/passwd 7. how to see the groups cat /etc/group 8. changing password passwd

Linux commands for devops|grep -i |find|grep -r| most used commands for devops 2020

  Linux commands for devops|grep -i |find|grep -r| most used commands for devops 2020 grep = grep is a command used for searching a text in a file or find the matching content text or files. grep "text" filename = it will show all the matching lines of text within that file. grep -R "text" directoryName = it will show all the matching lines of text along with file path grep -n "text" filename = it will show along with matching lines it displays line number grep -i "text" directory = it's ignore the case comparision grep -w "text" filename= it will show matches the whole word grep -o "text" directory = output the matches words only grep -c "text" filename = it will count of occurences

Linux cmp and diff commands|Linux commands for devops |difference between cmp and diff

Linux cmp and diff commands|Linux commands for devops |difference between cmp and diff CMP = command is used for comparing the byte by byte of text information of a file and outputs the first difference of the file. cat list1.txt green blue yellow white cat list2.txt green blue black white cmp list1.txt list2.txt output:- list1.txt list2.txt differ: byte 6, line 2 ------------------------------------------------------------------------------------------------------------------------------------- diff = it is used for comparting two text files and displays all the mis-matches in the files. In addition it displays special symbols helping us in understanding what we should do to make those two files identical. a = add c = change the text of the file d = delete line In addition to this it displays the mis-match lines with notation. = indicates the right side file = indicates suggestion should be applied to left side file 2,5c3 =in the left file from 2 - 5 lines should be replaced ...

Best commands In Linux|Pipe| and Redirection commands|How to use pipe & redirection command|

  Best commands In Linux|Pipe| and Redirection commands|How to use pipe & redirection command| we can use |for joining and executing multiple commands together. we can use pipe (|) is used for joining two linux shell commands and execute together command2 | command3 in the above statement the command2 gets executed first and the output produced by command2 will be passed as an input to the command3. cat pack.txt | wc -l ls -l | wc -l who | wc -l ps -ef | grep firefox how many no of process are running by user ps -ef | grep -w "sai" | wc -l redirections:- ------------------------------------------------------------ redirections are used for redirecting standard input or output of the command. There are 2 types of redirections are there. 1. = input redirection 2. = output redirection Usually a command writes the output onto the standard console if you want to write the output of a command to a different destination like a file then use output redirection copy conten...

Vim Text editor and Nano editor|How to use vim & nano editors in Linux|Linux commands for devops

  Vim Text editor and Nano editor|How to use vim & nano editors in Linux|Linux commands for devops There are 3 modes of VI Editor 1. Command Mode In command mode we cannot edit/input the text into the file/editor. To enter into command mode we need use [ESC] key. by default 2. Input Mode Input mode any key press will be taken as an input and will writes on to the file To enter into input mode you should press [i] key on the keyboard 3. Exit Mode In this we are going to quit from the editor. First we should be back to command mode by [ESC] and should type :q [quit] I=insert contents from the begining of the line i=insert contents from the current cursor position R=Replace characters from current cusor position S=replace single character O = open a new line above the current line o = open a new line below the current line write and save :wq quit without saving :q! quit :q undo :u move cursor to the begining of previous word :b yy = yank (copy the line) 2yy = c...

Linux Compress and zip Commands|How to unzip and compress in Linux|

  Linux Compress and zip Commands|How to unzip and compress in Linux| packaging  --------------------------------------------------------------------------- group of files in a folder can be packaged into a single file using packaging. Linux has provided a software utility "tar"  packaging= tar -cvf target.tar sourcedirectory un-pack = tar -xvf target.tar un-pack to a different directory = tar -xvf target.tar -C directory to know the size of a file/directory contents we can use below command du -h filename/directoryName compression ------------------------------------------------------------------ The group of files of a folder cannot be compressed directly unless those are packaged into a single tar file.  The compression technic will reduce the size of the original files gzip -------------------------------------------------------------- Linux has provided a software utility "gzip and gunzip" gzip = compression gunzip = uncompression gzip target.tar = it creates t...