Home / Tag Archives: command (page 2)

Tag Archives: command

April, 2010

  • 12 April

    Finding Linux files with "locate"

    There are a few of ways to find files on a Linux server, but most of them involve actually searching through each file in the filesystem until the correct one is located. This can be time consuming and taxing on the server’s CPU load, especially if you have a lot …

February, 2010

  • 17 February

    How to merge two different files in Linux

    In yesterday’s post, we learned how to find the discrepancies between two similar files using a command called diff. With it, we were able to compare them and identify the actual lines containing differences. Once you have identified the differences between the two, you have a couple of options. If …

  • 16 February

    How to compare two files in Linux

    Question: I have two scripts in a directory on my server. One is the right one and one is not, but I do not remember which is which. How can I compare the two files? Answer: Linux and UNIX-like operating systems usually come with a comparison command called “diff”. This …

  • 16 February

    How to delete duplicate files in Linux

    Question: Two of my directories on my server have some the same files. How can I easily delete any duplicates while preserving the unique files? Answer: There exists a Linux tool for just about everything, and this is no exception. You need a tool called fdupes, which searches the path …

  • 15 February

    How to list all users in Linux

    Question: How do I see all of the users that have accounts on my server? Answer: In a previous post, we covered the “who” command, which will tell an administrator which users are currently logged into the system, but another important thing to know about your server is which users …

  • 1 February

    Whois searching from the Linux command line

    There are many web-based Whois search tools and even some desktop ones available for free use, but with the “whois” command on your Linux server, you can use it to perform more complex tasks and even automate the process. For example, you can type: whois internetblog.org.uk It will return the …

January, 2010

  • 28 January

    Monitor disk space on a dedicated server

    Question: How can I configure a Unix server to tell me when the hard drive is getting full? Answer: Unix, Linux, and Unix-like systems have a command called “df” that reports disk space information about the server’s file system. Entering the following command: # df -P / produces output like …

  • 25 January

    Identifying memory consumption by process in Linux

    Question: How do I find out how memory is used by a particular process in Linux? Answer: On a Linux server, a nifty little command called “pmap” will do just what you want. The command string that you will need to enter as root is: # pmap -d PID But …

December, 2009

  • 29 December

    How to redirect Linux command output to a file

    All Linux servers have a useful feature that is only one character long. The character is > , and it makes saving command output to files extremely easy. It can make interpreting long command output data much easier and less time consuming. For example, if you wanted to list the …

November, 2009

  • 27 November

    Find out which users are logged in

    Question: How do I find out which users are logged in to my Linux server? Answer: To find out who is logged on to your server, you can run a very simple command: who You will need to login to your server via SSH order to run this command. This …

Powered by Namesco
© Copyright InternetBlog.Org.Uk 2024, All Rights Reserved