0 penilaian0% menganggap dokumen ini bermanfaat (0 suara)
6 tayangan1 halaman
This document contains useful Linux commands organized into categories such as directories, files, users, processes, system, and network. It provides commands for changing directories, listing directory contents, copying/moving/removing files, changing file permissions, editing files, finding files, changing user passwords, listing and terminating processes, checking system resources, networking configuration, and connecting to remote systems securely. The document is dated April 12, 2002 and includes contact information for its author.
This document contains useful Linux commands organized into categories such as directories, files, users, processes, system, and network. It provides commands for changing directories, listing directory contents, copying/moving/removing files, changing file permissions, editing files, finding files, changing user passwords, listing and terminating processes, checking system resources, networking configuration, and connecting to remote systems securely. The document is dated April 12, 2002 and includes contact information for its author.
This document contains useful Linux commands organized into categories such as directories, files, users, processes, system, and network. It provides commands for changing directories, listing directory contents, copying/moving/removing files, changing file permissions, editing files, finding files, changing user passwords, listing and terminating processes, checking system resources, networking configuration, and connecting to remote systems securely. The document is dated April 12, 2002 and includes contact information for its author.
Directories: cd........................................Change the current directory to home directory cd dir...................................Change the current directory to dir pwd.....................................Print the absolute pathname of the current directory mkdir dir..............................Create the dir rmdir dir...............................Remove the directory dir, if it is empty rm fr dir.............................Remove the directory dir, even it is not empty ls la | more.........................List information about the files of the current directory Files: cat file.................................List content of the file less file................................List content of the file one screenful at a time. cp file1 file2.........................Copy files mv file1 file2........................Move files rm file..................................Remove files chmod 755 file.....................Change file access permissions touch file..............................Update the access and modification time of file or create file vi file....................................Edit the file find / name *.rpm..............Find all rpm files from / directory Users: id.........................................Print real and effective UIDs and GIDs who.....................................Show who is logged on passwd................................Change user password su user................................Change the effective user id and group id to user su user.............................Make the shell a login shell su .....................................Change the effective user id and group id to root exit......................................Exit the shell logout..................................Exit a login shell Processes: ps ef |less..........................List all processes top.......................................Display top CPU processes kill 12345.............................Terminate a process kill 9 12345........................Kill a process System: uptime.................................Tell how long the system has been running date.....................................Print the system date and time df.........................................Report filesystem disk space usage free......................................Display amount of free and used memory in the system du hs dir............................Estimate file space usage of directory dir Network: /sbin/ifconfig........................List network interface information netstat nr...........................Kernel IP routing table cat /etc/resolv.conf...............List all nameservers ping system.com.................Testing connection to other system ssh luser@system.com........Open secure shell to the system sftp luser@system.com.......Open secure ftp connection to the system