Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Basic System related command in Red hat Linux

Posted by Dev On March 10, 2012 1 comments
Here I am sharing some of the very useful linux commends to view system informations:

  • date  :Show the current date and time.
  • uptime: show current uptime.
  • w: display who is online.
  • whoami: To check the logged in user.
  • finger username: To display information about username.
  • cat /proc/cpuinfo : To see the CPU information.
  • cat /proc/meminfo: To see the memory information of your system.
  • df -h  : show disk usage
  • du      : To show directory space usages.
  • uname -a : To show kernel information of your redhat linux.
  • man <command>: To show the manual for <command> (man cat)
  • cal : To show the months calendar.
  • which app: To show which application will be run by default.
Enjoyed the article do bookmarks us or get free updates directly in your mail.
READ MORE

Some Basic Linux Files commands

Posted by Dev On 0 comments
I am presenting some basic  linux commands which is very useful for the newbie:
(1) Files related commands
  • ls -l   :List files in current directory using long format.
  • ls -al :List files in current directory with hidden files.
  • ls -F :List files in current directory and indicate the files types.
  • rm name  :Remove a file or directory called name.
  • rm -rf  name  :Remove all directory and subdirectory under name directory.
  • cp filename /home/dev  :Copy the file called filename to the /home/dev directory.
  • cat filename  :To display the content of file named filename.
  • more filename  :To display file named filename one page at a time, when u want to proceed to next page   use the spacebar.
  • head filename   :To display the first 10 lines of the file called filename.
  • tail filename      :To display the last 10 lines of the file called filename. (tail -f file: output the last 10 line contents of file named file.)
  • touch filename  :To create a file named filename.
  •  mv file1 file2    :Rename or move file 1 to file2 if file2 existing directory, moves file1 into files2.

Next will be related to process management: follow me
READ MORE