Standard Commands
- Displaying the Date and Time: The date command
- Finding Out Who's Logged In: The who command
- Echoing Characters: The echo command - echo args
- List Information About Active Processes: The ps Command
- Display Current Working Directory Path: The pwd Command
- Sort Lines of file(s) or standard input if not supplied. - sort file(s)
- Count the Number of Lines Words and Characters in Files(s) or Standard Input if not Supplied - wc file(s)
- Returns Your Username: The whoami Command
- Lets you Change Your Password: The passwd Command
- Shows the Disk Usage of the Files and Directories in Filename - du filename
- Find Files Anywhere on the System - ff
- Looks for the String in the Files - grep string filename(s)
- Kills (ends) the Processes With the ID you Gave - kill PID
- Lists Your Last Logins - last yourusername
- Tells you who's logged in, and what they're doing - w
- Gives you lots of information about that user, e.g. when they last read their mail and whether they're logged in - finger username
- Lets You Have a (typed) Conversation with Another User - talk username
- Lets You Exchange One-line Messages with Another User - write username
- Lets you Send E-mail Messages to People Around the World. It's not the only mailer you can use, but the one we recommend - elm
Working With Files
- Listing Files: The ls Command - ls files
- Displaying the Contents of a File:The cat Command - cat file(s)
- Counting the Number of Words in a File: The wc Command
- Making a Copy of a File: The cp Command - cp file1 file2
- Renaming a File: The mv Command - mv file1 to file2
- Removing a File: The rm Command - rm file(s)
- Links two Files Together - ln file1 to file2
- Compares Files, and Shows Where They Differ - diff filename1 filename2
- Lets you Change the Read, Write, and Execute Permissions on Your Files - chmod options filename
Working With Directories
- Displaying Your Working Directory: The pwd Command
- Changing Directories: The cd Command - cd dir
- Creating a Directory: The mkdir Command - mkdir dir(s)
- Linking Files Into Directories: The ln Command - ln file(s) dir
- Copying a File from One Directory to Another: - cp file(s) dir
- Moving Files between Directories: mv old file/first directory new file/second Directory - mv file(s) dir
- Removing a Directory: The rmdir Command - rmdir dir(s)
- List Files in Directories or in Current Directory if Directories is not Specified. - ls dir(s)
Connecting to the Outside World:
- Allows you to Read News - nn
- Lets you Connect to a Remote Host - rlogin hostname
- Also Lets you Connect to a Remote Host - telnet hostname
- Lets you Download Files From a Remote Host Which is Set up as an Ftp-Server - ftp hostname
- Lets you Browse the Web From an Ordinary Terminal - lynx
File Compression:
- Compresses Files, so That They Take up Much Less Space - gzip filename
- Uncompresses Files Compressed by gzip - gunzip filename
- Lets you Look at a gzipped File Without Actually Having to gunzip it (same as gunzip -c) - gzcat filename
- You can even print it directly, using - gzcat filename | lpr
No comments:
Post a Comment