If you can see this check that
next section | up | prev page | next page |
Firstly you must realise that in Unix there are basically only two concepts - files and directories. Most things you would consider to be something other than these two concepts in a Windows environment are probably files in Unix. Clearly you have your standard files and directories, but in addition disks are also files (rather than Window's 'volumes'), and devices are files ( like the screen, the printer, a modem, and the network). This actually makes for a very intuitive environment where if you can do something to a file, you can do it to just about anything. The fundamental difference between windows and Unix is that in windows the character used to separate directories is '\' (such as c:\windows\tmp.txt) but in Unix is it '/' (such as /tmp/tmp.txt). Other than that most operations are pretty consistent.
By using Unix commands and applications, you can create and manage files containing a variety of data. These commands allow you to move around the system's file tree to create, copy, rename, move, and delete etc.. The commands that we will use ion this section are listed below and must be used in lower case. This is because Unix is case sensitive. In fact all commands are in lower case, and no commands have ever been created which use upper case characters.
ls | LiSt a file or directory |
cat | display the contents of a text file (conCATinate) |
cal | display a month-long CALendar |
date | display the current DATE |
pwd | print the Pathname for the current Working Directory |
more | display a text file one screen full at a time |
cd | Change working Directory |
mkdir | MaKe a DIRectory |
cp | CoPy a file |
mv | MoVe or rename a file |
rm | ReMove a file or a directory |
rmdir | ReMove an empty DIRectory |
man | display MANual pages on a command |
Centos 7 intro: | Paths | BasicShell | Search |
Linux tutorials: | intro1 intro2 wildcard permission pipe vi essential admin net SELinux1 SELinux2 fwall DNS diag Apache1 Apache2 log Mail |
Caine 10.0: | Essentials | Basic | Search | Acquisition | SysIntro | grep | MBR | GPT | FAT | NTFS | FRMeta | FRTools | Browser | Mock Exam | |
Caine 13.0: | Essentials | Basic | Search | |
CPD: | Cygwin | Paths | Files and head/tail | Find and regex | Sort | Log Analysis |
Kali: | 1a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7a | 8a | 8b | 9 | 10 | |
Kali 2020-4: | 1a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7 | 8a | 8b | 9 | 10 | |
Useful: | Quiz | Forums | Privacy Policy | Terms and Conditions |
Linuxzoo created by Gordon Russell.
@ Copyright 2004-2024 Edinburgh Napier University