190 likes | 550 Views
SYNERGIE-PUMA Linux training. SYNERGIE-PUMA Linux training. Linux for SYNERGIE-PUMA administration Introduction to Linux commands Linux system. SYNERGIE-PUMA Linux training. Special characters Directories '.' : Current directory '..' : Parent directory '~' : Home directory
E N D
SYNERGIE-PUMALinux training • Linux for SYNERGIE-PUMA administration • Introduction to Linux commands • Linux system
SYNERGIE-PUMALinux training • Special characters • Directories • '.' : Current directory • '..' : Parent directory • '~' : Home directory • Hidden files • Under Linux hidden files start with '.' (ex : ~/.bashrc) • Wildcards • '?' : Replace a single character • '*' : Replace a string
SYNERGIE-PUMALinux training • Special characters • 'cd' : Change directory • 'pwd' : Print current path • 'ls' : List directory content (ls, ls -l, ls -a, …) • 'mkdir' : Create a directory • 'rmdir' : Remove a directory
SYNERGIE-PUMALinux training • Files • 'cat' : Print file content • 'file' : Give the file type • 'more' / 'less' : Print file content screen by screen • ‘head’ / 'tail' : Print beginning or end of a file • 'touch' : change file timestamp (create an empty file) • 'diff' : Compare 2 files • 'wc' : Word count • 'cp' : Copy a file • 'mv' : Deplace/rename a file • 'rm' : Remove a file (rm -rf : remove recursively a directory) • 'ln' : Create a link (ln -s : create a symbolic link)
SYNERGIE-PUMALinux training • Rights, users and groups • 'chmod' : Change permission • 'chown' : Change the owner • 'chgrp' : Change the group • 'id' : Print the current user • 'su' : Change user
SYNERGIE-PUMALinux training • Process • 'ps' : Display running process (ps -elf) • 'pstree' : Display running process as tree view • 'top' : System monitoring • 'kill' : Send a signal to kill a process
SYNERGIE-PUMALinux training • File searching • 'find' : Search a file in a directory (find . -name 'test' -type f) • 'locate' : Search a file by name • 'which' : locate a command
SYNERGIE-PUMALinux training • Filters • 'grep' : Print lines matching a pattern • 'sort' : Sort lines of text files • 'cut' : remove sections for each line of files
SYNERGIE-PUMALinux training • Compression • 'tar -czvf XYZ.tgz XYZ' : Archive a file as tarball then compress with gzip • 'tar -xzvf XYZ.tgz' : Unpack a gzipped tarball archive • 'gzip XYZ' : compress a file using gzip • 'gunzip XYZ.gz' : uncompress a file using gzip
SYNERGIE-PUMALinux training • Various usefull commands • 'man XYZ' : Display help of XYZ command • 'df' : Display disk usage (df -h) • 'ftp <ftpserver>' : Connect to a ftp server • 'rsh' : Execute a remote command using rsh • 'ssh' : Execute a remote command using ssh • 'scp' : Copy a file from one machine to another one • 'shutdown -h now' : stop the machine • 'reboot' : restart the machine
SYNERGIE-PUMALinux training • Network • '/sbin/ifconfig lo' : print loopback interface • '/sbin/ifconfig eth0' : Ethernet interface • 'route' : Show the IP routing table • 'ping' : ping an ip on the network • 'system-config-network' : Configure network interface
SYNERGIE-PUMALinux training • Services • ‘service XYZ start' : Start service XYZ • ‘service XYZ stop' : Stop service XYZ • ‘service XYZ status' : Get status of service XYZ
SYNERGIE-PUMALinux training • RPM Packages • 'rpm -ivh XYZ.rpm' : Install a package • 'rpm -Uvh XYZ.rpm' : Install or upgrade a package • 'rpm -e XYZ' : Remove a package • 'rpm -V XYZ' : Check integrity of a package • 'rpm -q XYZ.rpm' : Query if a package is installed • 'rpm -qa' : Print all installed package
SYNERGIE-PUMALinux training • Printers • 'system-config-printers' : Configure printers
SYNERGIE-PUMALinux training • Date/time • 'system-config-date' : Configure date and time