Operating Systems & Administration

[Day 5] 1. Commands

D
DITISS Admin
••2 min read

1.
uname
Command

  • Purpose: Displays information about the system.

  • Usage:

    • uname
      : Shows the name of the operating system.
    • uname -r
      : Displays the kernel version.
    • uname -a
      : Displays all available information about the system (OS name, kernel version, hardware platform, etc.).
    • SMP: Stands for Symmetric Multi-Processing, which is a method for multiple processors to share the same memory and run processes simultaneously.

2.
rename
Command

  • Purpose: Allows renaming of multiple files at once. This is useful when the files share something in common (e.g., their extension).

  • Examples:

    • rename "s/file/test/" *.txt
      • Meaning: Replaces the word "file" with "test" in all
        .txt
        files.
    • rename "s/txt/doc/" *.txt
      • Meaning: Changes the extension of all
        .txt
        files to
        .doc
        .

Here , we used

grep
command to check if it is a
directory
or a
file
: !1. Command1.png

In the below figure, when we use cut command: !1. Command2.png

Read Next

8/26/2026

[Day 5] 2. VI Editor

### VI Editor Overview **VIM** stands for **VI IMproved**, an enhanced version of the **VI** text editor. It's a powerful CLI (Command Line Interfa...

8/26/2026

[Day 5] 3. Shell Scripting or Shell Programming

### Shell Scripting Overview **Shell scripting** is interpreted by the shell itself and is mainly used for: - Automation - Configuration - Wri...