Thursday, 30 July 2020

Unix/Linux Important Commands

Main Linux commands



ls -lrt == list of files order by date ascendingls -lrt | tail - 10  == list of files order by date ascending Top 10wc -l == line count in filegrep -i === Match pattern ignoring casegrep -i Test00 == Find word Test00 ignoring case and give the list of words containing Test00grep -i Test00 | wc -l === Gives count of number of wordswc -l Test.txt == this will give line count in text.txtgrep -i "Maximo" | wc -l = Give the count of lines which contains word Maximo

pwd === Print working directory.

cd == to go into directory

cd .. == to go out of directory

df -H == This is used to check disk file system space available and used.

rm file.txt == to remove file

ls heap* == to list all files with heap* name..

TOP == see all process

kill -9 IDOFPROCESSTOKILL

How to create Multiselect lookup

 Inorder to create a multiselect lookup you can use following steps


1. Create a Menu to call a dialog.

2. Create a multiselect dialog using relationship for mbo you want to select

3. write a beanclass on ok even of dialog to select mbo's selected and set value in owner of the dialog by concatenating.