Basic UNIX commands
Unix is a portable, multitasking, multiuser, time-sharing operating system (OS).The Unix operating system is a set of programs that act as a link between the computer and the user.UNIX is case-sensitive.
Lists your files.
Lists your files in ‘long format’, which contains lots of useful information. The information will be the exact size of the file, owner of the file and who has the right to look at it, and the last modified date.
Lists all files, including the ones whose filenames begin in a dot, which you do not always want to see. There are many more options, for example to list files by size, by date, recursively etc.
Is an editor that lets you create and edit a file.
mv filename1 filename2
moves a file into a different directory.
cp filename1 filename2
copies a file
removes a file.
diff filename1 filename2
compares files, and shows where they differ
You will find how many lines, words, and characters there are in a file
chmod options filename
It will allow you to change the read, write, and execute permissions on your files.
This command compresses files so that they take up much less space.
uncompresses files compressed by gzip.
Directories Directories, like folders on a Macintosh, are used to group files together in a hierarchical structure.
Create a new directory
tells you where you currently are.
Returns your username.
Lets you change your password.
kill the processes with the ID you entered. If you don’t know the process ID just type ps and you will get I’d
Get details information regarding your disk quota.
Get the disk usage of the files and directories in filename.
Shows the current date and time.
Shows a calendar of the current month.