Important Unix Commands That You Should Know

Software by: Bernard Peh Rating: 1 Star2 Stars3 Stars4 Stars5 Stars Loading ... Loading ...

Unix is one of the most important operating system today. Its powerful features, scalability, strong security, and support for multiple users have made it the top choice operating systems for server, workstations and mainframes.

It is good to have some knowledge of Unix commands especially if your web host is Unix/Linux based. You could do alot of things by yourself by logging into the server via Secure Shell(SSH). This article will describe some of the important “need to know” Unix commands.

1. ls

This command will show you what files are in your current directory. If you add in a -F option, ie “ls -F xxx”, there will be a “/” appended to the end of directory names, * to executables and @ to links. “ls -a xxx” will display all hidden files as well. This is also the most used command.

2. cd

Change directory. If you type “cd xx”, it means to change to the specified directory “xx”. “cd ~” means to change to your default home directory.

3. cp “a b”

Copy file a to b. If b is a directory, the new file will be named b/a.

4. mv “a b”

Move files from a to b. For example, if I type “mv songs.txt /tmp”, the file songs.txt will be moved to /tmp/songs.txt. Moving a file is the same as renaming a file.

5. echo “text”

Print “text” to the terminal. If “text” is surrounded by double quotes, the text will be printed with any environment variables such as $HOME. If “text” is surrounded by single quotes, the “text” is printed without any special processing.

6. pwd

Print the current working directory. Useful command when you are lost in the directories.

7. cat “file”

Print the contents of the specified file(s) to the terminal.

8. less “file”

Display the specified file one screen at a time. Press the spacebar to go to the next screen. Press Q to quit. You often combine “less” with some other commands such as “cat abc | less”. This command means you print the contents of the file abc and display it one page at a time.

9. ps

Display information about your running programs. This is a good command to use if your server is slow and you suspect that some applications are taking too much memory. The most famous command using ps is “ps aux”. This will display useful information on the running programs.

10. rm

Remove or delete a file. If you type “rm -r directory”, it will remove a directory and all the files underneath it recursively.

11. man

This is the most important command. man means “manual”. If you are stuck with cat command for example, type “man cat” and you can see the help file.

Bernard Peh is a great passioner of web technologies and one of the co-founders of SiteCritic Website Reviews. He works with experienced web designers and developers for more than 5 years, developing and designing commercial and non-commercial websites. During his free time, he does website reviews,freelance SEO and PHP work.

Share This

Related Post on Software

 

Leave a Comment

Tags Cloud

Electronics Expert Guide

Computer Guide Rating: 1 Star2 Stars3 Stars4 Stars5 Stars Loading ... Loading ...

What’s google earth.com
Google Earth.com is stunning, it is another great package from the kings who can do no wrong. Simply follow 2 steps to take advantage of this great free download from Google f…

Read More »
Computer Guide Rating: 1 Star2 Stars3 Stars4 Stars5 Stars Loading ... Loading ...

Wi Fi Fo Fum, I think I smell the blood…oops wrong tale. This story doesn’t involve giants, but it does involve giant leaps forward in technology that will affect us all.The other day I was watchi…

Read More »
Personal Tech Rating: 1 Star2 Stars3 Stars4 Stars5 Stars Loading ... Loading ...

Let’s talk music! Let’s talk podcasts!
1,000 songs, non-skip, digital quality, portability - the pencil thin iPod Nano is just the ticket. Jogging, walking or toughing it out on a treadmill life …

Read More »
Satellite Tv Rating: 1 Star2 Stars3 Stars4 Stars5 Stars Loading ... Loading ...

Launched in 1996 by EchoStar Communications, DISH Network is the second-largest satellite TV provider in the world, with 11 million subscribers and 9 broadcast satellites.In addition to TV programming…

Read More »
Computer Guide Rating: 1 Star2 Stars3 Stars4 Stars5 Stars Loading ... Loading ...

MAGNETIC TAPE STORAGE Beginning in the 1950s, magnetic tape has progressed from the original half inch wide ferrite coated tape on open reels 10inch diameter and 2400ft long to the current cassettes m…

Read More »