ночь работы в консоли
PS Linux users only=)
PS Linux users only=)
Подробнее
FILE COMMANDS SYSTEM INFO ©Is - directory listing 0 Is -al - formatted listing with hidden files 0 cd dir - change directory to dir 0 cd - change to home 0 pwd - show current directory 0 mkdir dir - create a directory dir 0 rm file - delete file 0 rm -r dir - delete directory dir 0 rm -f file - force remove file 0 rm -rf dir - force remove directory dir * 0 cp filel file2 - copy filel to file2 0 cp -r dirl dir2 - copy dirl to dir2; create dir2 if it doesn't exist 0 mv filel file2 - rename or move filel to file2 if file2 is an existing directory, moves filel into directory file2 0 In -s file link - create symbolic link link to file 0 touch file - create or update file 0 cat > file - places standard input into file 0 more file - output the contents of file 0 head file — output the first 10 lines of file 0 tail file — output the last 10 lines of file 0 tail -f file - output the contents of file as it 0 grows, starting with the last 10 lines SEARCHING 0 grep pattern files - search for pattern in files 0 grep -r pattern dir - search recursively for pattern in dir 0 command | grep pattern - search for pattern in the output of command 0 locate file - find all instances of file Cli 0 date - show the current date and time 0 cal - show this month's calendar 0 uptime - show current uptime 0 w - display who is online 0 whoami - who you are logged in as 0 finger user - display information about user 0 uname -a - show kernel information 0 cat /proc/cpuinfo - cpu information 0 cat /proc/meminfo - memory information 0 man command - show the manual for command 0 df - show disk usage 0 du - show directory space usage 0 free - show memory and swap usage 0 whereis app - show possible locations of app 0 which app - show which app will be run by default COMPRESSION 0 tar cf file.tar files - create a tar named file.tar containing files 0 tar xf file.tar - extract the files from file.tar 0 tar czf file.tar.gz files - create a tar with Gzip compression 0 tar xzf file.tar.gz - extract a tar using Gzip 0 tar cjf file.tar.bz2 - create a tar with Bzip2 compression 0 tar xjf file.tar.bz2 - extract a tar using Bzip2 0 gzip file - compresses file and renames it to file.gz 0 gzip -d file.gz - decompresses file.gz back to file NETWORK 0 ping host - ping host and output results 0 whois domain - get whois information for domain 0 dig domain - get DNS information for domain 0 dig -x host - reverse lookup host 0 wget file - download file 0 wget -c file - continue a stopped download commands ^ ШШЗЖ1 PROCESS MANAGEMENT 0 ps - display your currently active processes 0 top - display all running processes 0 kill pid - kill process id pid 0 killall proc - kill all processes named proc (use with extreme caution) 0 bg - lists stopped or background jobs; resume a stopped job in the background 0 fg - brings the most recent job to foreground 0 fg n - brings job n to the foreground SHORTCUTS 0 Ctrl+C - halts the current command 0 Ctrl+Z - stops the current command, resume with fg in the foreground or bg in the background 0 Ctrl+D - log out of current session, similar to exit 0 Ctrl+W - erases one word in the current line 0 Ctrl+U - erases the whole line 0 Ctrl+R - type to bring up a recent command 0 !! - repeats the last command 0 exit - log out of current session INSTALLATION 0 Install from source: ./configure make make install 0 dpkg -i pkg.deb - install a package (Debian) 0 rpm -Uvh pkg.rpm - install a package (RPM) FILE PERMISSIONS 0 chmod octal file - change the permissions of file to octal, which can be found separately for user, group, and world by adding: • 4 - read (r) • 2 - write (w) • 1 - execute (x) Examples: chmod 777 - read, write, execute for all chmod 755 - rwx for owner, rx for group and world For more options, see man chmod.
Linux
Еще на тему