Tech Kraft

Documentum, AWS, Java, Ruby on Rails, Linux, Windows, App Servers


Linux

  • Linux: How to find size of the current directory

    In linux, the directory is just a pointer to the location. What we really want if the size of all the files that are contained in that directory. To see the individual sizes of all the directories inside the current directory: du -sh * the ‘s’ option provides a summary, the ‘h’ option provides the Continue reading

  • Linux: vi search and replace command

    Format The format of the command is given below: %s/<string_being_replaced>/<replacement_string>/ Examples In order to replace the word “hate” with “love”. Open the file in vi Hit [Esc] (Esc in vi lets you type commands instead of typing content) Type : (colon) followed by %s/hate/love/ and hit [Enter] key. :%s/hate/love/ Above command will replace first occurrence Continue reading

  • Linux: Can’t open display for xterm

    When using xterm, if you are not able to see the display show up on your screen, or you get an error, try setting your display. Find the ip of your local windows desktop using the following command: C:\>ipconfig Windows IP Configuration Ethernet adapter Local Area Connection 6:    Connection-specific DNS Suffix  . : dev.company.gov Continue reading

  • JBoss: Command Line Interface [CLI]

    JBoss 7 has a new Command Line Interface (CLI) which can be used to deploy or undeploy applications. Go to the bin folder of your jboss installation Type the following command to start the CLI: ./jboss-cli.sh You will see the following response: You are disconnected at the moment. Type ‘connect’ to connect to the server Continue reading

  • Linux: scp command basics and to copy a directory

    The scp command in linux is used to securely copy (scp – secure copy) files and folders from one linux server to another. The basic structure of the scp command is as follows: scp source  target scp username@source_servername_or_ip:/path/to/file_or_directory location/to/copy/file_or_folder/to When you run the above command from the target directory, you will be prompted to type Continue reading

  • Linux: How to truncate log file

    Here is a way to truncate a log file on linux: cp /dev/null file_to_truncate.log     Continue reading

  • Linux: How to switch user

    To switch user when you are in the sudoers list: sudo su – username Linux will then ask you to type your password (not the user you are switching to, but the user you are logged in as). You can always do whoami to check who you are running the command as whoami   Continue reading

  • Linux: How to suppress permission denied messages with find command

    When doing a find command, like the following, if you do not have sufficient permissions, you will get a lot of “permission denied” messages. This sometimes drowns out the few lines where you actually get a hit. One way to avoid that is to add the following to the command: find / -name filename.txt 2>/dev/null Continue reading

  • Linux: Entropy fix

    To check entropy: cat /proc/sys/kernel/random/entropy_avail To increase entropy: rngd -r /dev/urandom -o /dev/random -b -t 1 Continue reading

  • Linux: Comparing two files in Linux

    If you need to compare two text files in Linux, try the following command: comm -23 <(sort OLDFILE) < (sort NEWFILE > OUTPUTFILE Options Explained: -1     suppress lines unique to OLDFILE -2     suppress lines unique to NEWFILE -3     suppress lines that appear in both files Continue reading

About Me

Senior Software Engineer professional with over 16 years of success with multiple open source technologies and various Content Management platforms and solutions.

Proven technical abilities through numerous projects involving enterprise web application design and development, application installation, configuration and support, and workflow and collaboration system designs.

  • Ability to learn new technologies and platforms quickly and apply them to the task at hand.
  • Excellent analytical skills, and strong communication and collaboration abilities.
  • Technical emphasis in including but not limited to Java, Ruby on Rails, Documentum and Alfresco
    in both Linux and Windows based environments

Newsletter