Thursday, August 13, 2015

BASIC LINUX COMMANDS


BASIC LINUX COMMANDS

cat : This is a way to list the contents of short files to the screen


cd:  Change directory
  
cp :  Copy Files

df  :  Show the amount of disk space used on each mounted filesystem.

less:Similar to the more command, but the user can page up and down through the file.

ln :     Creates a symbolic link to a file.

locate: A fast database driven file locator.
 
logout : Logs the current user off the system.

ls : List files

ls -al : List all files in the current working directory in long listing format showing                         permissions,     ownership, size, and time and date stamp

more : Allows file contents or piped output to be sent to the screen one page at                           a time.

more /etc/profile : Lists the contents of the "/etc/profile" file to the screen one page                                   at a time.


ls -al |more  : Performs a directory listing of all files and pipes the output of the listing                           through more. If the directory listing is longer than a page,                                              it will be listed one page at a time.

mv : Move or rename files

pwd : Show the name of the current working directory

more /etc/profile : Lists the contents of the "/etc/profile" file to the screen one page                                   at a time.

shutdown : Shuts the system down.

whereis : Show where the binary, source and manual page files are for a command














No comments:

Post a Comment