Common Administrative Commands in Red Hat Enterprise Linux 5, 6, 7, and 8

Total Page:16

File Type:pdf, Size:1020Kb

Common Administrative Commands in Red Hat Enterprise Linux 5, 6, 7, and 8 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 System basics Kernel, boot, and hardware Basic configuration File systems, volumes, and disks TASK RHEL TASK RHEL TASK RHEL TASK RHEL /etc/sysconfig/rhn/systemid 5 6 append 1 or s or init=/bin/bash Graphical system-config-* 5 6 ext3 5 View 5 6 subscription to kernel cmdline configuration Default file information subscription-manager identity 6 7 8 Single user/ tools gnome-control-center 7 8 ext4 6 system rescue mode append 1 or s or rd.break or rhnreg_ks 6 init=/bin/bash to kernel 7 8 Text-based xfs 7 8 cmdline configuration system-config-*-tui 5 6 Configure 1, 3 tools rhn_register 5 6 7 8 ssm create 7 subscription Shut down shutdown 5 6 7 8 2 system system-config-printer 5 6 7 subscription-manager 6 7 8 Configure gdisk 7 8 printer Create/modify systemctl poweroff 7 8 gnome-control-center 8 hwbrowser 5 Power off disk partitions ssm_create 8 system system-config-date 5 6 sosreport poweroff 5 6 7 8 fdisk 5 6 7 8 5 6 7 8 dmidecode parted timedatectl 7 8 View system systemctl halt 7 8 Configure time Halt system profile lstopo and date ssm create 7 8 6 7 8 date 5 6 7 8 lscpu halt 5 6 7 8 Format disk partition mkfs.filesystem_type (ext4, xfs) gnome-control-center 8 5 6 7 8 cat/proc/cpuinfo systemctl reboot 7 8 8 mkswap lshw Reboot system /etc/ntp.conf 5 6 reboot 5 6 7 8 xfs_fsr 6 7 8 View RHEL ntpdate 5 6 7 Defragment version /etc/redhat-release 5 6 7 8 Configure /etc/inittab 5 6 disk space copy data to new file system information default run Synchronize timedatectl fsck (look for ‘non-contiguous 5 6 7 8 level/target time and date 7 8 systemctl set-default 7 8 /etc/chrony.conf inodes’) 1 Be aware of potential issues when using subscription-manager on Red Hat Enterprise Linux 5: https://access.redhat.com/solutions/129003. /boot/grub/grub.conf 5 6 date ssm mount 7 8 Configure 8 2 Subscription-manager is used for Satellite 6, Satellite 5.6 with SAM and newer, and Red chronyc Mount storage Hat’s CDN. GRUB /etc/default/grub mount 5 6 7 8 3 RHN tools are deprecated on Red Hat Enterprise Linux 7. rhn_register should be used for bootloader grub2-mkconfig 7 8 system-config-keyboard 5 6 /etc/fstab Satellite server 5.6 and newer only. For details, see: What subscription management services grub-set-default are offered by RHSM?, Transition of Red Hat Network Classic Hosted to Red Hat Configure Subscription Management, and Satellite 5.6 unable to register RHEL 7 client system due to localectl 7 8 Mount and /etc/fstab keyboard 5 6 7 8 rhn-setup package not included in Minimal installation. hwbrowser 5 activate swap swapon -a gnome-control-center 8 View hardware lshw (in EPEL) 6 7 Configure configured /etc/fstab 5 6 7 8 /etc/ssh/ssh_config static mounts 8 /etc/ssh/sshd_config lshw Configure SSH 5 6 7 8 ~/.ssh/config View free disk df 5 6 7 8 Configure ssh-keygen space Software management modprobe 5 6 7 8 kernel module TASK RHEL lvdisplay Configure lvs yum groupinstall 5 6 View logical vgdisplay hardware udev 5 6 7 8 5 6 7 8 volume info vgs Install device 7 8 pvdisplay software yum group install View kernel sysctl -a Jobs and services pvs 5 6 7 8 yum install 5 6 7 8 parameters cat /proc/cmdline TASK RHEL Create ssm create (if backend is lvm) 8 yum groupinfo 5 6 Load kernel physical modprobe 5 6 7 8 chkconfig --list module 5 6 volume pvcreate 5 6 7 8 View software ls /etc/init.d/ 7 8 info yum group info Remove kernel systemctl -at service ssm create (if backend is lvm) 8 modprobe -r 5 6 7 8 Create volume yum info 5 6 7 8 module ls /etc/systemd/system/*. group service 7 vgcreate 5 6 7 8 Update View kernel rpm -q kernel ls /usr/lib/systemd/system/*. yum update 5 6 7 8 5 6 7 8 List all services software version service ssm create (if backend is lvm) 8 uname -r Create logical volume Upgrade systemctl list-units -at lvcreate 5 6 7 8 yum upgrade 5 6 7 8 software service find /etc/systemd/ /usr/lib/ 8 resize2fs 5 6 Configure systemd/ /run/systemd/ -name Enlarge subscription-manager repos *.service” software 5 6 7 8 volumes xfs_growfs /etc/yum.repos.d/*.repo 7 8 repository User management formatted with ssm resize service --status-all 5 6 default file TASK RHEL List running Find package rpm -qf filename system vgextend 5 6 7 8 services systemctl -t service 5 6 7 8 owning file yum provides filename-glob 7 8 lvextend Graphical user system-config-users 5 6 7 --state=active management rpm -q packagename 5 6 gnome-control-center 8 service name start resize2fs View software 5 6 lvreduce 5 6 service name stop Shrink volumes version yum list installed packagename useradd 5 6 7 Start/stop vgreduce 7 8 Create user formatted with rpm -q packagename service account systemctl start name.service default file gnome-control-center 8 7 8 systemctl stop name.service system XFS cannot currently be shrunk; View installed rpm -qa copy desired data to a 7 8 5 6 7 8 userdel 5 6 7 software yum list installed Delete user chkconfig name on smaller file system. 5 6 account name gnome-control-center 8 Enable/disable chkconfig off Install a ssm check 8 yum module install module_name 8 service Check/repair module usermod systemctl enable name.service 7 8 file system View/change /etc/passwd systemctl disable name.service fsck 5 6 7 8 View info on a vipw 5 6 7 yum module info module_name 8 user account module id service name status 5 6 View NFS showmount -e details View service 5 6 7 8 share mount gnome-control-center status View a 8 systemctl status name.service 7 8 module’s yum module info module_name 8 service nfs reload 5 6 groupadd 5 6 7 streams Create user Check if chkconfig name --list 5 6 Configure NFS group service is 7 8 gnome-control-center 8 share systemctl reload nfs.service yum module remove enabled systemctl is-enabled name 7 8 Change module_name:stream Delete user groupdel 5 6 7 /etc/exports 5 6 7 8 module yum module reset module:stream 8 Create new chkconfig --add 5 6 streams yum module install group gnome-control-center 8 service file Configure module:new_stream or modify systemctl daemon-reload /etc/auto.master.d/*.autofs 7 8 on-demand 8 groupmod configuration /etc/systemd/system/*.service /etc/auto.* 5 6 7 auto-mounts List available Change group /etc/group yum module list 8 modules details runlevel 5 6 chmod gnome-control-center 8 View run level/ Change file chown systemctl get-default 7 8 8 passwd 5 6 7 target permissions chgrp Change user umask (future file creation) password 5 6 7 8 gnome-control-center 8 who -r Change file /etc/inittab chattr 8 usermod 5 6 attributes Networking 5 6 7 run_level Change user visudo Change run init TASK RHEL permissions level/target Change access gnome-control-center 8 systemctl isolate name.target setfacl 8 7 8 control list 7 8 systemctl set-default Configure nmcli con mod Change chage 5 6 7 name /etc/hosts password /etc/syslog.conf 5 resolution 5 6 7 8 /etc/resolv.conf policy gnome-control-center 8 6 7 8 Configure /etc/rsyslog.conf w 5 6 7 /etc/sysconfig/network 5 6 View user logging Configure sessions /etc/rsyslog.d/*.conf gnome-control-center 8 7 8 Resource management hostname hostnamectl /var/log/journal /etc/hostname 7 8 systemd-journald.service TASK RHEL nmtui journalctl 7 8 Trace system strace ifconfig 5 6 View logs calls 5 6 7 8 /var/log 5 6 7 8 nmcli dev show Trace library ltrace View network teamdctl 7 8 Security and identity pam_tty_audit kernel module 5 6 7 calls 5 6 7 8 interface info bridge TASK RHEL tlog 8 Change ip addr nice 5 6 7 8 /etc/selinux/config process 5 6 7 8 brctl Configure renice chcon add audit=1 to kernel cmdline priority Configure system audit restorecon auditctl nmcli con [add|mod|edit] system 5 6 7 8 /etc/audit/auditd.conf semanage 5 6 7 8 Change nmtui 7 8 security /etc/audit/audit.rules Configure setsebool process run taskset 5 6 7 8 network nm-connection-editor system-config-selinux authconfig location interface /etc/pam.d/system-auth /etc/sysconfig/network-scripts/ 5 6 7 8 Report on kill ifcfg-* View audit aureport system sealert 5 6 7 8 5 6 7 Kill a process pkill 5 6 7 8 security output /var/log/faillog killall View routes ip route 5 6 7 8 cron authconfig netstat 5 6 5 6 at 5 6 7 8 system-config-network authconfig-tui 5 6 7 Schedule/ LDAP, SSSD, batch authconfig-gtk batch tasks ss Kerberos nmcli tuna 6 7 8 Configure 7 8 systemd-run --on-calendar 8 nmtui authselect 8 routes nm-connection-editor pcp atop 8 Find file by View system Network users getent 5 6 7 8 locate 5 6 7 8 ip route add name usage 5 6 7 8 top /etc/sysconfig/route-iface ps Find file by find 5 6 7 8 sar iptables and ip6tables characteristic 5 6 iostat 5 6 7 8 /etc/sysconfig/ip*tables vmstat tar mpstat system-config-firewall 6 cpio numastat Configure Create archive 5 6 7 8 firewall zip firewall-cmd xz iostat 6 7 8 7 8 firewall-config pcp-dstat View disk usage 8 nftables 8 pmiostat pcp-dstat--socket 8 df 5 6 7 8 View ports/ sockets ss lsof 5 6 7 8 netstat 5/19 Copyright © 2019 Red Hat, Inc.
Recommended publications
  • RACF Tips Volume 3, Issue 1, January 2009
    Volume 3 Issue 1 IPS RSH RACF T January For Administrators, Auditors, and Analysts 2009 Specifying a Replacement ID used to change a file's attributes for Program Control, APF Authorized, and Shared Library. with IRRRID00 . To generate commands to delete an ID and all references to it, use RACF's IRRRID00 utility. You simply enter the ID in the SYSIN DD Temporary Access with statement of the IRRRID00 job like so: CONNECT REVOKE(date) //SYSIN DD * USERX You may occasionally need to permit a user temporary access to a resource. One way to do If USERX is the owner of a profile or connect, so is to grant a group access to the resource IRRRID00 generates commands like: and connect the user to that group with a revoke date. The command to set the connect revoke CONNECT RDSADM GROUP(RACFSTC) OWNER(?USERX) date would look something like this: In these cases, you need to change ?USERX to CONNECT USERA GROUP(TEMPACC) REVOKE(1/20/09) a valid replacement ID. This can be done manually or with ISPF EDIT CHANGE. On the date specified with the revoke, RACF will no longer allow the user to have the access Alternatively, you can tell IRRRID00 which permitted to the group. If you want to remove the replacement ID to use when it builds the revoke date but leave the connect intact, enter: commands. If, for instance, you want to replace every occurrence of USERX with USERJ, enter CONNECT USERA GROUP(TEMPACC) NOREVOKE the following in the SYSIN DD: A banking client of ours used this capability to //SYSIN DD * govern access to APF-authorized libraries.
    [Show full text]
  • LS-09EN. OS Permissions. SUID/SGID/Sticky. Extended Attributes
    Operating Systems LS-09. OS Permissions. SUID/SGID/Sticky. Extended Attributes. Operating System Concepts 1.1 ys©2019 Linux/UNIX Security Basics Agenda ! UID ! GID ! Superuser ! File Permissions ! Umask ! RUID/EUID, RGID/EGID ! SUID, SGID, Sticky bits ! File Extended Attributes ! Mount/umount ! Windows Permissions ! File Systems Restriction Operating System Concepts 1.2 ys©2019 Domain Implementation in Linux/UNIX ! Two types domain (subjects) groups ! User Domains = User ID (UID>0) or User Group ID (GID>0) ! Superuser Domains = Root ID (UID=0) or Root Group ID (root can do everything, GID=0) ! Domain switch accomplished via file system. ! Each file has associated with it a domain bit (SetUID bit = SUID bit). ! When file is executed and SUID=on, then Effective UID is set to Owner of the file being executed. When execution completes Efective UID is reset to Real UID. ! Each subject (process) and object (file, socket,etc) has a 16-bit UID. ! Each object also has a 16-bit GID and each subject has one or more GIDs. ! Objects have access control lists that specify read, write, and execute permissions for user, group, and world. Operating System Concepts 1.3 ys©2019 Subjects and Objects Subjects = processes Objects = files (regular, directory, (Effective UID, EGID) devices /dev, ram /proc) RUID (EUID) Owner permissions (UID) RGID-main (EGID) Group Owner permissions (GID) +RGID-list Others RUID, RGID Others ID permissions Operating System Concepts 1.4 ys©2019 The Superuser (root) • Almost every Unix system comes with a special user in the /etc/passwd file with a UID=0. This user is known as the superuser and is normally given the username root.
    [Show full text]
  • Version 7.8-Systemd
    Linux From Scratch Version 7.8-systemd Created by Gerard Beekmans Edited by Douglas R. Reno Linux From Scratch: Version 7.8-systemd by Created by Gerard Beekmans and Edited by Douglas R. Reno Copyright © 1999-2015 Gerard Beekmans Copyright © 1999-2015, Gerard Beekmans All rights reserved. This book is licensed under a Creative Commons License. Computer instructions may be extracted from the book under the MIT License. Linux® is a registered trademark of Linus Torvalds. Linux From Scratch - Version 7.8-systemd Table of Contents Preface .......................................................................................................................................................................... vii i. Foreword ............................................................................................................................................................. vii ii. Audience ............................................................................................................................................................ vii iii. LFS Target Architectures ................................................................................................................................ viii iv. LFS and Standards ............................................................................................................................................ ix v. Rationale for Packages in the Book .................................................................................................................... x vi. Prerequisites
    [Show full text]
  • Cygwin User's Guide
    Cygwin User’s Guide Cygwin User’s Guide ii Copyright © Cygwin authors Permission is granted to make and distribute verbatim copies of this documentation provided the copyright notice and this per- mission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this documentation under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this documentation into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation. Cygwin User’s Guide iii Contents 1 Cygwin Overview 1 1.1 What is it? . .1 1.2 Quick Start Guide for those more experienced with Windows . .1 1.3 Quick Start Guide for those more experienced with UNIX . .1 1.4 Are the Cygwin tools free software? . .2 1.5 A brief history of the Cygwin project . .2 1.6 Highlights of Cygwin Functionality . .3 1.6.1 Introduction . .3 1.6.2 Permissions and Security . .3 1.6.3 File Access . .3 1.6.4 Text Mode vs. Binary Mode . .4 1.6.5 ANSI C Library . .4 1.6.6 Process Creation . .5 1.6.6.1 Problems with process creation . .5 1.6.7 Signals . .6 1.6.8 Sockets . .6 1.6.9 Select . .7 1.7 What’s new and what changed in Cygwin . .7 1.7.1 What’s new and what changed in 3.2 .
    [Show full text]
  • Chattr Linux Command
    Linux Commands PDF – https://arkit.co.in Chattr - Linux command Change file attributes on a Linux file system using, chattr command to protect files and directories. This is an amazing option to protect your files and directories. Chattr attribute is used to stop accidentally delete of files and folder. You cannot delete the files secured via chattr attribute even though you have full permission over files. This is very use full in system files like shadow and passwd files, which contains all user information and passwords. Chattr command syntax # chattr [operator] [switch] [file name] Protect file using chattr command apply attribute ‘+i’ In this practical example, we are going to create a file and directory and provide full permission to created file and directory and apply attributes using chattr command try to delete. # touch file1 # chmod 777 file1 # ls -l total 0 -rwxrwxrwx. 1 root root 0 Jan 17 17:11 file1 # chattr +i file1 # rm -rf file1 rm: cannot remove ‘file1’: Operation not permitted # cat >> file1 -bash: file1: Permission denied List applied attributes In order to list the applied attributes, we have to use ‘lsattr’ command # lsattr file1 ----i----------- file1 Follow Us on social media: Facebook | Twitter | Reddit | LinkedIn | Website | Blog | YouTube Linux Commands PDF – https://arkit.co.in Apply attributes and append the file As we see above example when we apply an attribute ‘+i’ we cannot append, modify and delete file. Apply attribute ‘+a’ then we can append the file but we cannot delete the file. Let us see the example
    [Show full text]
  • Basic Linux Security
    Basic Linux Security Roman Bohuk University of Virginia What is Linux? • An open source operating system • Project started by Linus Torvalds kernel • Kernel: core program that controls everything else (controls processes, i/o between applications) • Not to be confused with Unix – commercial OS • Unix-like / *nix – broad term encompassing both Unix and Linux “Flavors” • Timeline: https://tinyurl.com/LinuxDT VM Setup • Get the VM from a flashdrive or install your own version • Login with user:UV@cnsR0cks! • 2 ways to connect it to the internet and give SSH access. In the VM network settings, select • NAT • The machine “proxies” the traffic through your NIC • Add port 22 in the port forwarding settings, and SSH to localhost • Bridged Connection • The machine has its own IP on the LAN, and you can connect to it remotely • If you want to set up a bridged connection, type ifconfig to find the MAC address, and add it at https://netreg.itc.virginia.edu/ (Register a device for network access)i VM Setup What happens when Linux boots? • BIOS looks for and executes a Master Boot Record (MBR) • MBR loads GRUB, the Linux bootloader which loads and runs the kernel • Kernel mounts the filesystem, executes the programs in /sbin/init • The init file runs the Linux at a specific “runlevel” • The runlevel-specific programs are executed from /etc/rc.d/rc*.d/ • 0 – halt • 1 – single-user mode • 2 – multiuser mode (no networking) • 3 – full multiuser mode • 5 – GUI • 6 – reboot Runlevels • Practice: who -r # prints out the current runlevel init * # changes the runlevel to * who -Ha # lists the users who are logged in Breaking Into Things Why? So you can defend it.
    [Show full text]
  • Linux Pocket Guide.Pdf
    3rd Edition Linux Pocket Guide ESSENTIAL COMMANDS Daniel J. Barrett 3RD EDITION Linux Pocket Guide Daniel J. Barrett Linux Pocket Guide by Daniel J. Barrett Copyright © 2016 Daniel Barrett. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebasto‐ pol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promo‐ tional use. Online editions are also available for most titles (http://safaribook‐ sonline.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or [email protected]. Editor: Nan Barber Production Editor: Nicholas Adams Copyeditor: Jasmine Kwityn Proofreader: Susan Moritz Indexer: Daniel Barrett Interior Designer: David Futato Cover Designer: Karen Montgomery Illustrator: Rebecca Demarest June 2016: Third Edition Revision History for the Third Edition 2016-05-27: First Release See http://oreilly.com/catalog/errata.csp?isbn=9781491927571 for release details. The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Linux Pocket Guide, the cover image, and related trade dress are trademarks of O’Reilly Media, Inc. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellec‐ tual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.
    [Show full text]
  • Access Control Topics
    CIT 480: Securing Computer Systems Access Control Topics 1. Access Control Matrix 2. ACLs and Capabilities 3. Role-Based Access Control (RBAC) 4. Discretionary Access Control (DAC) 5. Examples: UNIX, Windows, Android, SQL 6. Mandatory Access Control (MAC) 7. Hardware Protection Access Control Access control is the selective restriction of access to an information, computational, or physical resource. Access Control is Pervasive Application Middleware Operating System Hardware Access Control is Pervasive 1. Application • Complex, custom security policy. • Ex: Amazon account: wish list, reviews, CC 2. Middleware • Database, system libraries, 3rd party software • Ex: Credit card authorization center 3. Operating System • File ACLs, IPC, Android permissions system, SELinux 4. Hardware • Memory management, hardware device access. Access Control Matrices A table that defines permissions. – Each row of this table is associated with a subject, which is a user, group, or system that can perform actions. – Each column of the table is associated with an object, which is a file, directory, document, device, resource, or any other entity for which we want to define access rights. – Each cell of the table is then filled with the access rights for the associated combination of subject and object. – Access rights can include actions such as reading, writing, copying, executing, deleting, and annotating. – An empty cell means that no access rights are granted. Example Access Control Matrix Access Control Lists (ACLs) An ACL defines, for each object, o, a list, L, called o’s access control list, which enumerates all the subjects that have access rights for o and, for each such subject, s, gives the access rights that s has for object o.
    [Show full text]
  • Linux Shell Scripting Cookbook Second Edition
    Linux Shell Scripting Cookbook Second Edition Over 110 practical recipes to solve real-world shell problems, guaranteed to make you wonder how you ever lived without them Shantanu Tushar Sarath Lakshman BIRMINGHAM - MUMBAI Linux Shell Scripting Cookbook Second Edition Copyright © 2013 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: January 2011 Second edition: May 2013 Production Reference: 1140513 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78216-274-2 www.packtpub.com Cover Image by Parag Kadam ([email protected]) Credits Authors Project Coordinator Shantanu Tushar Shiksha Chaturvedi Sarath Lakshman Proofreader Reviewers Linda Morris Rajeshwari K. John C. Kennedy Indexer Hemangini Bari Anil Kumar Sudhendu Kumar Production Coordinator Aravind SV Shantanu Zagade Acquisition Editor Cover Work Kartikey Pandey Shantanu Zagade Lead Technical Editor Ankita Shashi Technical Editors Jalasha D'costa Amit Ramadas Lubna Shaikh About the Authors Shantanu Tushar is an advanced GNU/Linux user since his college days.
    [Show full text]
  • Bash Guide for Beginners
    Bash Guide for Beginners Machtelt Garrels Xalasys.com <tille wants no spam _at_ xalasys dot com> Version 1.8 Last updated 20060315 Edition Bash Guide for Beginners Table of Contents Introduction.........................................................................................................................................................1 1. Why this guide?...................................................................................................................................1 2. Who should read this book?.................................................................................................................1 3. New versions, translations and availability.........................................................................................2 4. Revision History..................................................................................................................................2 5. Contributions.......................................................................................................................................3 6. Feedback..............................................................................................................................................3 7. Copyright information.........................................................................................................................3 8. What do you need?...............................................................................................................................4 9. Conventions used in this
    [Show full text]
  • Advanced Administration of the Gnulinux Operating System, February 2010
    Configuration, tuning and optimisation Remo Suppi Boldrito PID_00148473 GNUFDL • PID_00148473 Configuration, tuning and optimisation Copyright © 2009, FUOC. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License" GNUFDL • PID_00148473 Configuration, tuning and optimisation Index Introduction............................................................................................... 5 1. Basic aspects........................................................................................ 7 1.1. Monitoring on a UNIX System V ............................................... 8 1.2. Optimising the system ................................................................ 15 1.3. General optimisations ................................................................. 19 1.4. Additional configurations ........................................................... 20 1.5. Monitoring .................................................................................. 24 Activities...................................................................................................... 33 Bibliography............................................................................................... 34 GNUFDL • PID_00148473 5 Configuration, tuning and optimisation
    [Show full text]
  • TB169 (Rev1) - Using Centroid Linux
    TB169 (Rev1) - Using Centroid Linux Overview This document covers some of the differences between Linux and DOS. It also has a list of Linux commands and Hot-keys and how to use them. Differences between Linux & DOS commands: * Forward Slash - Linux paths use a forward slash '/' to separate directories instead of a backslash ''. * No drive letters - Linux does NOT use drive letters (i.e. 'c:'). Drive letters are emulated within CNC10. ('c:' and 'a:' in CNC10 refer to Linux directories '/cncroot/c' and '/cncroot/a'). * CASE SENSITIVE - Linux is case sensitive whereas DOS is case insensitive. Most Linux commands are lowercase. For instance, typing 'LS' instead of 'ls' at the prompt in Linux will generate an error. * Poweroff - Like Windows, Linux should be properly shutdown before turning off the power. Turning off the power before the operating system has properly shutdown can potentially create errors on the hardrive. To properly shutdown Linux, type the command "poweroff" from the command line. CNC10 can also properly shutdown Linux from the F10 Shutdown menu in the main menu. Important CNC Linux commands: ls - List directory cd - Change current working directory cp - Copy file(s) mv - Move file(s) rm - Remove file(s) mkdir - Create directory rmdir - Remove empty directory rm -r - Remove directory and it's contents less - Display a text file pwd - Print current working directory cnc10m4 - Start CNC10 mill cnc10t4 - Start CNC10 lathe cncedit - Edit a text file statplc - Display status of plc executor version - Display CNC Linux version number cnc10update - Install update from floppy disk outside of CNC10 install-cnc10 - Install CNC10, Utilities and Config files install-config - Only install CNC7 or CNC10 config files 7to10 - Convert CNC7 config files to CNC10 config files exit - Close the command window (xterm) help - Displays CNC Linux help information screenresolution - Displays commands for changing screen resolution (version 1.15) chattr - Assigning file attributes to files.
    [Show full text]