Best Web Hosting


COUPON CODE:  techpulpdeal



and get $9.94 off on all hosting plans

Search


There are hundreds of cool tips and tricks. Just search the site below.


Browse articles of 2010 | 2009 | 2008



Category ‘Command Line’

1 2 3 4 »

  • TECHPULP | How to show desktop pop-up notification in Linux using notify-send command
    It is very useful when you are about to start a bulk job and want to get notified asynchronously after its completion. That helps you continue with other work without having to check for its completion periodically. Of course if...
  • TECHPULP | How to change home directory of a user in Linux
    Ensure you have shadow-utils package installed. yum install -y shadow-utils Use the following command to set new home directory /home/newhome for user “myuser”. usermod -d /home/newhome myuser ...

  • TECHPULP | Simple usage of sed command
    The following examples show you how sed command can be used as a powerful alternative to general commands like head, tail etc. Let us consider the below input file for all the examples explained here. [neo@techpulp ~]# cat input.txt Line1...
  • TECHPULP | How to run multiple commands at once in bash shell
    All commands can be just appended using a semicolon (;) to make the bash to run all the commands one after the other as shown below. [liz@techpulp ~]# make config; make; make release The above command is equivalent to running...

  • TECHPULP | How to safely remove a file that contains sensitive data in Linux
    Typically a file removal operation, in Linux or any other operating system, doesn’t actually erase all contents of the file. Though the file is logically deleted and doesn’t appear to the be present, its contents still present in the hard...
  • TECHPULP | How to create a patch file in Linux using diff command
    Patch files describe the differences between two versions of same project and it is the favourite way of exchanging differences among developers. Patch files come in handy when the project is huge and exchanging whole source code is not so...

  • TECHPULP | How to kill a process in Unix/Linux
    There are multiple commands supported in UNIX/Linux to kill a process. The most-used command is “kill” command which expects PID of the process which can be retrieved from the output of “ps” command. To kill a process named httpd, first...
  • TECHPULP | How to use “diff” utility effectively
    The command line tool “diff” helps you find differences between two files or directories. It also can report the differences between two directories including all files and sub directories recursively. Compute differences between two files: [neo@techpulp ~]# diff animals1.txt animals2.txt...

  • TECHPULP | How to find if two binary files differ or not
    The standard “diff” command can be used to find if two binary files differ from each other or not. The following example shows how to do it. [neo@techpulp ~]# diff file1.binĀ  file2.bin Binary files file1.bin and file2.bin differ [neo@techpulp ~]#...
  • TECHPULP | Bash script to delete blank lines from a file
    There are multiple ways of deleting blank lines from a file. This article tells how to use “grep” command to achieve the objective. The “grep” command provides an option “-v” to invert the matching. That means grep finds the lines...

1 2 3 4 »

  • Best Ever Deal on Earth