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

Friday, 18 May 2018

Compress & Extract Linux commands

tar -zcvf archive.tar.gz directory/    => compressing folder
tar -zxvf archive.tar.gz                   => extracting the compressed file

Wednesday, 3 September 2014

Basic Linux Commands

1. mkdir - make directories
2. cd - change directories
3. mv- change the name of a directory
   Ex: mv testdir newnamedir
4. pwd - print working directory
   will show you the full path to the directory you are currently in.
   This is very handy to use, especially when performing
   some of the other commands on this page
5. rmdir - Remove an existing directory
6. rm -r
   Removes directories and files within the directories recursively.
7. chown - change file owner and group
8. chmod - change file access permissions
9. reboot - Reboots the system (requires root privileges).
10.ping host - Sends an echo request via TCP/IP to the specified host. A response confirms that the host is operational.