Renaborges.com

Unix Tutorial (2) - Directories

June 19, 2011

Unix commands come in all shapes and sizes, from simple and common to rare and hellish. The command itself is a rather brief set of letters (usually, but not always), possibly followed by options and / or arguments. To open an UNIX Terminal window, click on the "Terminal" icon from Applications/Accessories menus.





When you first login, your current working directory is your home directory. Your home directory has the same name as your user-name, for example, reny, and it is where your personal files and subdirectories are saved. To find out what is in your home directory, type:

$ ls

The ls command ( lowercase L and lowercase S ) lists the contents of your current working directory.

Try these simple commands, the bold indicate what you should type.

$ date
Thu Feb 16 09:35:12 GMT 2011
$ _

Note that after the date, time, and time zone are displayed, the shell prompt reappears ready for your next command. Next enter who to see who is on the system.

The response is a list of all active users, the terminals they are logged on, and the date and time they last logged on.

$ who
iwonka tty1a Feb16 10:05
stan     tty2a Feb16 15:23
$ _

Unix lets you enter two or more commands on the same line. Simply enter a semi-colon between each command; then press Enter after the final command.

$ date; who

The next example shows what happens if you enter a nonexistent command.

$ amelia
amelia: not found

If you enter a command that is unknown to Unix, you get the not found message, followed by the shell prompt.
It's important at this early to realize that it's almost impossible to damage a computer system by mistyping a command. There are, to be sure, a few dangerous commands, such as rm and rmdir, that if used rashly, can erase files you may not want to erase.

Here are few commands that you can try:

Command       :           Meaning
  • ls :   list (show) files and directories
  • ls -a :   list all files and directories (including those whose names begin with a dot). Files beginning with a dot (.) are known as hidden files and usually contain important program configuration information. They are hidden because you should not change them unless you are very familiar with UNIX!!!
  • mkdir :   make a directory
  • cd directory :   change to NAMED directory - i.e: cd Documents
  • cd :   change to home-directory = change to root i.e: /
  • cd ~ :   change to home-directory
  • cd .. :   change to parent directory = go back 1 directory  AND only 1 dot (.) means current directory
  • pwd (print working directory) :   display the path of the current directory = show in which directory you are.
 

Unix Tutorial for Beginners (1)

June 17, 2011
April 27, 2011



What is Unix?

Unix is not that easy to define. At the lowest level it is simply the kernel (suite of programs which make the computer work) of an operating system. It was first developed in the 1960s, and has been under development ever since. It is a stable, multi-user, multi-tasking system for servers, desktops and laptops.
UNIX systems also have a graphical user interface (GUI) similar to Microsoft Windows which provides an easy to use environment. However, knowledge of UNI...

Continue reading...
 

Utility to destroy your iPhone's tracking data

June 17, 2011
Posted by Rena Borges on Wednesday, April 27, 2011 Under: Apple



You have learnt that Apple have been tracking iPhone and iPad users, creating a map of all the places you have been since you bought the device. If you are shocked with that news, now you can learn how to stop that!

Untrackerd is a utility that will not put any icon in your home screen, it runs in the background of the device cleaning the stored location data. There is a problem, it requires a jailbroken device. We do not recomm...

Continue reading...
 

Apple is watching you!

June 17, 2011
Posted by Rena Borges on Wednesday, April 20, 2011 Under: Apple






I have just read that iPhone and iPad owners are being watched by Apple! There is an application that tracks your automatic back up every time you connect to iTunes. This application makes a record of the places you have been according to the transmissions from the cellular tower triangulation. Regardless of whether you have GPS turned on, and whether you have allowed other applications to have access to your location Appl...

Continue reading...
 

Samsung Plans to Release a 2GHz Dual-Core Smartphone by 2012

June 17, 2011
Posted by Rena Borges on Monday, April 18, 2011 Under: Smartphones



It was two years ago when the first 1 GHz smartphone came onto the market, now Samsung promises us the new milestone of a 2 GHz mobile phone. Cool? Yeah! But how about the battery life of these new gadgets? Has anyone thought about taking the battery technology to the next level? I think the company that will have the breakthrough in this new battery technology will be dominant, because before anything, what we need is not on...

Continue reading...
 
blog comments powered by Disqus
blog comments powered by Disqus