Basic Linux Commands
Viewing, copying, moving and deleting files
| ls | Display the contents of the current directory |
| ls -a | Display also hidden files and hidden directories |
| cp filename /path/dir_name | Copy filename into directory /path/dir_name |
| cp -r dir_name /path/dir_name2 | Copy the entire dir_name into /path/dir_name2 |
| cp filename1 filename2 /path/dir_name | Copy filename1 and filename2 into /path/dir_name |
| rm name | Remove a file or directory called name |
| rm -r name | Remove an entire directory as well as its included files and subdirectories |
| mv filename /path/dir_name | Move filename into /path/dir_name |
| mv filename1 filename2 | Rename filename1 to filename2 |
| cat filename | Display filenames contents |
| more filename | Display filename in pages. Use spacebar to view next page |
| head filename | Display filenames first 10 lines |
| head -15 filename | Display filenames first 15 lines |
| tail filename | Display filenames last 10 lines |
| tail -15 filename | Display filenames last 15 lines |
| pwd | Display current directory |
| cd /path/dir_name | Change to directory /path/dir_name |
| cd .. | Go 1 directory up |
| mkdir dir_name | Create directory dir_name |
| rmdir dir_name | Delete directory dir_name |
Read more
How to open winrar files on Linux (Fedora/Ubuntu)
I just downloaded .rar file. But i can’t open it under my Fedora operating systems. How to open it?
RAR is a proprietary compression format widely used today. By default, Fedora unable to open RAR files. So, you need to install a software called unrar.
How to install unrar on Fedora?
Just use yum command as follows : Read more
How to Configure Mac OS X to access your NTP Server
Once you finished setup your NTP server, you need to allow your NTP client to access the NTP Server. Here i going to show your how to configure your NTP Client (Mac OS X) to sync the time from your NTP Server. Below are the steps:
1st – Launch your terminal
2nd – From the terminal, type the following command
techkaki-MacBook:~ techkaki $ sudo vi /etc/ntp.conf
3rd – change the default timezone address to your server domain name or ip address
By default, it will point to apple timezone. Eg: server time.asia.apple.com
To change it, just change the URL to your server ip or server domain name
eg: server 192.168.1.2 or server ntp.techkaki.com
4th – Save the ntp.conf
Now you will realize that your Mac timezone already point to your ntp server.

