Documente Academic
Documente Profesional
Documente Cultură
Linux
Developed
Kernel types
Monolithic
Linux Distributions
Linux distributions
Debian, Ubuntu, Linux Mint, Fedora, CentOS, openSUSE, Arch Linux
and Gentoo,
Linux Enterprise Server distributions
Red Hat Enterprise Linux and SUSE
Applications
etc...
- creating directory
mkdir dirname
rmdir
rmdir dirname
cd
Change directory
cd dirpath
cp
Copying files
cp file1 file2
mv
mv oldfile newfile
Commands
Commands
Commands
halt
This command shuts down the operating system, but can only be run by the root user.
reboot
This command shuts down and restarts the operating system. It also can only be run by root.
#reboot
[will perform simple reboot]
#reboot -f
[will perform fast reboot ]
init 0
This command also shuts down the operating system, and can only be run by root.
init 6
This command restart the operating system. It also can only be run by root.
Commands
man
This command opens the manual page for the command or utility specified. The man utility is a
very useful tool. If you are unsure how to use any command, use man to access its manual page.
For example, you could enter man ls at the shell prompt to learn how to use the ls utility.
#man ls
whoami
This command displays the username of the currently logged-in user.
netstat
This command displays the status of the network, including current connections, routing tables,
etc.
VI Editor
Popular text editor
Just type vi <<filename>> at the prompt and hit the enter key.
A new file will be opened
Type the contents needed and save
To save, press the Esc Key and then press : (colon) w q and then enter
To quit with out saving Esc + : + q and then enter
Navigation
Left - h
Down
-j
Up - k
Right- l
Top of the screen H (shift + h) //caps lock will not work
Middle of the screen M (shift + m)
Bottom of the screen L (shift + l)
$ - End Key, 0 Home Key
Edit Commands
Cut X, x
Copy yy, yw
Paste P, p
- Output redirection
cat file > newfile Copies files content to newfile. Over writes the existing
content
cat file >> newfile Appends the new content to the existing content
Pipes
Output of first command is input for the second and so on
who | wc l Number of lines in the output of who command will be displayed
the
File systems
Start
1
/oradisk
ext3
defaults
12
1K-blocks
9272
0
513748 0% /dev/shm