SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
Common Linux
Commands
Pocket Guide
Setting Kernel Parameters
Kernel parameters for Oracle*
i i g
* per MetaLink 169706.1
Setting Process Limits
Add settings to /etc/security/limits.conf:
Adding Interim Swap Space
Adding Interim /tmp Space
Troubleshooting
lsof -i ssss
lsof -p pid
netstat -anlp
tcpdump ethereal
strace -p pid
nc
Bash Shell Tweaks
Copyright 2007 Solution Beacon, LLC. All Rights Reserved.
Key System Configuration Files
/etc/exports
/etc/fstab
/etc/grub.conf
/etc/init.d
/etc/inittab
/etc/lilo.conf
/etc/ocfs.conf
/etc/nsswitch.conf
/etc/profile.d
/etc/raidtab
/etc/security/limits.conf
/etc/sysconfig
/etc/sysctl.conf
/etc/updatedb.conf
/etc/xinetd.d
/etc/X11/XF86Config
/proc/cpuinfo
/proc/meminfo
/proc/mdstat
/proc/swaps
/proc/sys/kernel/sem
/proc/sys/kernel/shmmax
/proc/sys/kernel/shmmni
System Information
chkconfig
service daemon on
chroot directory
dmesg
kudzu
ld
lsmod
pstree -ca
shutdown -t 60 -r time mesg
startx
screen
Xvfb
File System Management
fdformat /dev/fd0H1440
fdisk -l
fdisk /dev/hda
hdparm -i /dev/hda
hdparm -i -d1 -m16 -c3 -k1 /dev/hda
mkbootdisk kernel
mk2efs -m 1 -j /dev/hdb5
mkswap /dev/hdb1
mount /dev/cdrom /mnt/cdrom
mount -t vfat /dev/hda9 /mnt
hda9
mount -o loop file.iso /mnt
mcopy file1 file2
sftp user@host
swapon /dev/hdb1
tune2fs c 0 /dev/hda2
tune2fs -l /dev/hda1
umount /filesystem
Network Information
dig domain
ifconfig -a
netstat -rn
host xxx
route -e
Package Management
rpm -qa
rpm -qil package
rpm -ivh package
rpm -Fvh package
rpm -e package
up2date
User Management
$HOME/.bash_profile
$HOME/.bash_logout
chage
chage -d0
chsh
groupadd group
passwd user
passwd
ssh user@host
ulimit -a
useradd -d home_dir -g primary_group -G
secondary_group username
Backup, Restore and File Transfer
curl url
scp user@host:file1 file2
tar -xzvf tarfile
tarfile
tar -czvf tarfile
unzip zipfile pattern
zip -r zipfile pattern
ncftp
Miscellaneous
dircolors
import
import -
opcontrol

Contenu connexe

Tendances

Perintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemPerintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemRoziq Bahtiar
 
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)Anne Nicolas
 
Troubleshooting linux booting process
Troubleshooting linux booting processTroubleshooting linux booting process
Troubleshooting linux booting processManolis Kartsonakis
 
An Introduction to User Space Filesystem Development
An Introduction to User Space Filesystem DevelopmentAn Introduction to User Space Filesystem Development
An Introduction to User Space Filesystem DevelopmentMatt Turner
 
Linux kernel debugging
Linux kernel debuggingLinux kernel debugging
Linux kernel debuggingHao-Ran Liu
 
3 manual installation of open vpn
3 manual installation of open vpn3 manual installation of open vpn
3 manual installation of open vpnAshwajit Maske
 
Linux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archiveLinux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archiveKenny (netman)
 
SiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingSiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingMarian Marinov
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04mikehie
 
Building Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCCBuilding Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCCKernel TLV
 
Linux kernel debugging
Linux kernel debuggingLinux kernel debugging
Linux kernel debugginglibfetion
 
bcc/BPF tools - Strategy, current tools, future challenges
bcc/BPF tools - Strategy, current tools, future challengesbcc/BPF tools - Strategy, current tools, future challenges
bcc/BPF tools - Strategy, current tools, future challengesIO Visor Project
 

Tendances (20)

Prosess accouting
Prosess accoutingProsess accouting
Prosess accouting
 
Perintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemPerintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating Sistem
 
Shell Scripting
Shell ScriptingShell Scripting
Shell Scripting
 
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
 
Dev ops
Dev opsDev ops
Dev ops
 
Troubleshooting linux booting process
Troubleshooting linux booting processTroubleshooting linux booting process
Troubleshooting linux booting process
 
An Introduction to User Space Filesystem Development
An Introduction to User Space Filesystem DevelopmentAn Introduction to User Space Filesystem Development
An Introduction to User Space Filesystem Development
 
Linux kernel debugging
Linux kernel debuggingLinux kernel debugging
Linux kernel debugging
 
3 manual installation of open vpn
3 manual installation of open vpn3 manual installation of open vpn
3 manual installation of open vpn
 
Linux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archiveLinux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archive
 
Clear cache memory
Clear cache memoryClear cache memory
Clear cache memory
 
SiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingSiteGround Tech TeamBuilding
SiteGround Tech TeamBuilding
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04
 
Building Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCCBuilding Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCC
 
Linux kernel debugging
Linux kernel debuggingLinux kernel debugging
Linux kernel debugging
 
Unix for developers
Unix for developersUnix for developers
Unix for developers
 
Cluster setup multinode_aws
Cluster setup multinode_awsCluster setup multinode_aws
Cluster setup multinode_aws
 
bcc/BPF tools - Strategy, current tools, future challenges
bcc/BPF tools - Strategy, current tools, future challengesbcc/BPF tools - Strategy, current tools, future challenges
bcc/BPF tools - Strategy, current tools, future challenges
 
Fun with FUSE
Fun with FUSEFun with FUSE
Fun with FUSE
 
Clase4 (consola linux)
Clase4 (consola linux)Clase4 (consola linux)
Clase4 (consola linux)
 

En vedette (16)

Common linuxcommandspocketguide07
Common linuxcommandspocketguide07Common linuxcommandspocketguide07
Common linuxcommandspocketguide07
 
Basic commands
Basic commandsBasic commands
Basic commands
 
Ftp
FtpFtp
Ftp
 
File system hierarchy standard
File system hierarchy standardFile system hierarchy standard
File system hierarchy standard
 
Kernel (computing)
Kernel (computing)Kernel (computing)
Kernel (computing)
 
Basic commands linux
Basic commands linuxBasic commands linux
Basic commands linux
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux01122011
Linux01122011Linux01122011
Linux01122011
 
Linux
Linux Linux
Linux
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
Linux notes
Linux notesLinux notes
Linux notes
 
Kernel (computing)
Kernel (computing)Kernel (computing)
Kernel (computing)
 
Teradata
TeradataTeradata
Teradata
 
Linux kernel architecture
Linux kernel architectureLinux kernel architecture
Linux kernel architecture
 
The linux networking architecture
The linux networking architectureThe linux networking architecture
The linux networking architecture
 

Similaire à Common linuxcommandspocketguide07

Kernel compilation
Kernel compilationKernel compilation
Kernel compilationmcganesh
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Ata Rehman
 
Linux Troubleshooting
Linux TroubleshootingLinux Troubleshooting
Linux TroubleshootingKeith Wright
 
Linux Common Command
Linux Common CommandLinux Common Command
Linux Common CommandJeff Yang
 
SANS @Night There's Gold in Them Thar Package Management Databases
SANS @Night There's Gold in Them Thar Package Management DatabasesSANS @Night There's Gold in Them Thar Package Management Databases
SANS @Night There's Gold in Them Thar Package Management DatabasesPhil Hagen
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Slide lpi mudancas lpic1
Slide lpi mudancas lpic1Slide lpi mudancas lpic1
Slide lpi mudancas lpic1Roberto Castro
 
Red Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security AgencyRed Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security Agencysanchetanparmar
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTJoshua Thijssen
 

Similaire à Common linuxcommandspocketguide07 (20)

Kernel compilation
Kernel compilationKernel compilation
Kernel compilation
 
Basic Linux Internals
Basic Linux InternalsBasic Linux Internals
Basic Linux Internals
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
Linux Troubleshooting
Linux TroubleshootingLinux Troubleshooting
Linux Troubleshooting
 
Unix 3 en
Unix 3 enUnix 3 en
Unix 3 en
 
Linux Common Command
Linux Common CommandLinux Common Command
Linux Common Command
 
SANS @Night There's Gold in Them Thar Package Management Databases
SANS @Night There's Gold in Them Thar Package Management DatabasesSANS @Night There's Gold in Them Thar Package Management Databases
SANS @Night There's Gold in Them Thar Package Management Databases
 
Refining Linux
Refining LinuxRefining Linux
Refining Linux
 
Linux startup
Linux startupLinux startup
Linux startup
 
An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Linux Conf Admin
Linux Conf AdminLinux Conf Admin
Linux Conf Admin
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Slide lpi mudancas lpic1
Slide lpi mudancas lpic1Slide lpi mudancas lpic1
Slide lpi mudancas lpic1
 
PHP selber bauen
PHP selber bauenPHP selber bauen
PHP selber bauen
 
Sysctl
SysctlSysctl
Sysctl
 
Red Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security AgencyRed Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security Agency
 
Ch12 system administration
Ch12 system administration Ch12 system administration
Ch12 system administration
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
 

Plus de Teja Bheemanapally

Plus de Teja Bheemanapally (18)

Teradata
TeradataTeradata
Teradata
 
Linux or unix interview questions
Linux or unix interview questionsLinux or unix interview questions
Linux or unix interview questions
 
Linux crontab
Linux crontabLinux crontab
Linux crontab
 
Installing red hat enterprise linux1
Installing red hat enterprise linux1Installing red hat enterprise linux1
Installing red hat enterprise linux1
 
Linux basic commands tutorial
Linux basic commands tutorialLinux basic commands tutorial
Linux basic commands tutorial
 
In a monolithic kerne1
In a monolithic kerne1In a monolithic kerne1
In a monolithic kerne1
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
File system hierarchy standard
File system hierarchy standardFile system hierarchy standard
File system hierarchy standard
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
15 practical grep command examples in linux
15 practical grep command examples in linux15 practical grep command examples in linux
15 practical grep command examples in linux
 
25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples
 
Shell intro
Shell introShell intro
Shell intro
 
Installing red hat enterprise linux1
Installing red hat enterprise linux1Installing red hat enterprise linux1
Installing red hat enterprise linux1
 
In a monolithic kernel
In a monolithic kernelIn a monolithic kernel
In a monolithic kernel
 
In a monolithic kerne1
In a monolithic kerne1In a monolithic kerne1
In a monolithic kerne1
 
Basic commands
Basic commandsBasic commands
Basic commands
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples
 

Common linuxcommandspocketguide07

  • 1. Common Linux Commands Pocket Guide Setting Kernel Parameters Kernel parameters for Oracle* i i g * per MetaLink 169706.1 Setting Process Limits Add settings to /etc/security/limits.conf: Adding Interim Swap Space Adding Interim /tmp Space Troubleshooting lsof -i ssss lsof -p pid netstat -anlp tcpdump ethereal strace -p pid nc Bash Shell Tweaks
  • 2. Copyright 2007 Solution Beacon, LLC. All Rights Reserved. Key System Configuration Files /etc/exports /etc/fstab /etc/grub.conf /etc/init.d /etc/inittab /etc/lilo.conf /etc/ocfs.conf /etc/nsswitch.conf /etc/profile.d /etc/raidtab /etc/security/limits.conf /etc/sysconfig /etc/sysctl.conf /etc/updatedb.conf /etc/xinetd.d /etc/X11/XF86Config /proc/cpuinfo /proc/meminfo /proc/mdstat /proc/swaps /proc/sys/kernel/sem /proc/sys/kernel/shmmax /proc/sys/kernel/shmmni System Information chkconfig service daemon on chroot directory dmesg kudzu ld lsmod pstree -ca shutdown -t 60 -r time mesg startx screen Xvfb File System Management fdformat /dev/fd0H1440 fdisk -l fdisk /dev/hda hdparm -i /dev/hda hdparm -i -d1 -m16 -c3 -k1 /dev/hda mkbootdisk kernel mk2efs -m 1 -j /dev/hdb5 mkswap /dev/hdb1 mount /dev/cdrom /mnt/cdrom mount -t vfat /dev/hda9 /mnt hda9 mount -o loop file.iso /mnt mcopy file1 file2 sftp user@host swapon /dev/hdb1 tune2fs c 0 /dev/hda2 tune2fs -l /dev/hda1 umount /filesystem Network Information dig domain ifconfig -a netstat -rn host xxx route -e Package Management rpm -qa rpm -qil package rpm -ivh package rpm -Fvh package rpm -e package up2date User Management $HOME/.bash_profile $HOME/.bash_logout chage chage -d0 chsh groupadd group passwd user passwd ssh user@host ulimit -a useradd -d home_dir -g primary_group -G secondary_group username Backup, Restore and File Transfer curl url scp user@host:file1 file2 tar -xzvf tarfile tarfile tar -czvf tarfile unzip zipfile pattern zip -r zipfile pattern ncftp Miscellaneous dircolors import import - opcontrol