Skip to content

premmallick231/Linux-Commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 

Repository files navigation

๐‘ณ๐’Š๐’๐’–๐’™-๐‘ช๐’๐’Ž๐’Ž๐’‚๐’๐’…๐’”

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐๐ฌ

1 - ls: list directory

The ls command line utility lists all the files and directories under a specified directory. By default, ls uses the current directory and lists files and directories in alphabetical order by name. The ls command supports many flags that modify its behavior.

syntax:- ls [option] โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-25 210422 Screenshot 2024-12-25 205845 Screenshot 2024-12-25 205914 Screenshot 2024-12-25 205940 Screenshot 2024-12-25 210007 Screenshot 2024-12-25 210026

2 - pwd: print working directory

The pwd command writes to standard output the full path name of your current directory (from the root directory). All directories are separated by a / (slash). The root directory is represented by the first /, and the last directory named is your current directory.

syntax:- pwd [option] โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-25 204719 Screenshot 2024-12-25 204631

3 - cd: change directory

The cd command, also known as chdir (change directory), is a command-line shell command used to change the current working directory in various operating systems.

syntax:- cd [option] โ†ต

syntax:- cd โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-26 135101

4 - mkdir: make directory

The mkdir command in Linux is a command-line utility that creates new directories in the file system. mkdir stands for "make directory".

syntax:- mkdir [option] directory name โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-26 140130

5 - rmdir: remove directory

The rmdir command in Linux removes empty directories from the system. Here are some things to know about the rmdir command:

syntax:- rmdir remove directory name โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-26 142847

Screenshot 2024-12-26 142822

6 - mv: move

The mv command moves files and directories from one directory to another or renames a file or directory.

syntax:- mv remove directory name โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-29 170508 Screenshot 2024-12-29 165801 Screenshot 2024-12-29 165801 Screenshot 2024-12-29 165839

7 - touch command

touch command: It is used to create a file without any content. The file created using the touch command is empty. This command can be used when the user doesn't have data to store at the time of file creation. Using touch Command Initially, we are in the home directory and this can be checked using the pwd command.

syntax:- touch remove directory name โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-29 173815 Screenshot 2024-12-29 172743 Screenshot 2024-12-29 172823

8 - file command

The file command reads the files specified by the File parameter or the FileList variable, performs a series of tests on each file, and attempts to classify them by type.

syntax:- file remove directory name โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-29 174928

9 - zip command

One of the most useful commands in Linux is the zip command, which allows you to create and manage compressed archives. A zip command is a powerful file packaging utility that can be used to compress and extract files and directories, as well as to add, update, and delete files from a zip archive.

syntax:- zip remove directory name โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-29 175442 Screenshot 2024-12-29 182431 Screenshot 2024-12-29 182417 Screenshot 2024-12-29 182321 Screenshot 2024-12-29 182300 Screenshot 2024-12-29 182242 Screenshot 2024-12-29 182223 Screenshot 2024-12-29 182205 Screenshot 2024-12-29 182141 Screenshot 2024-12-29 182122 Screenshot 2024-12-29 182107 Screenshot 2024-12-29 182050 Screenshot 2024-12-29 182027 Screenshot 2024-12-29 181926 Screenshot 2024-12-29 181910 Screenshot 2024-12-29 181853 Screenshot 2024-12-29 181830 Screenshot 2024-12-29 181813 Screenshot 2024-12-29 181755 Screenshot 2024-12-29 181734 Screenshot 2024-12-29 181646 Screenshot 2024-12-29 181627 Screenshot 2024-12-29 181550 Screenshot 2024-12-29 181527 Screenshot 2024-12-29 181507 Screenshot 2024-12-29 181445 Screenshot 2024-12-29 181421

10 - unzip command

The unzip command is a powerful tool for extracting files from ZIP archives. It supports a range of options and flags for controlling its behavior. The command can be used to extract single or multiple files from an archive, test the integrity of an archive, and list the contents of an archive, among other things.

syntax:- unzip remove directory name โ†ต

๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‘๐ž๐ฌ๐ฎ๐ฅ๐ญ

Screenshot 2024-12-29 180520 Screenshot 2024-12-29 180555 Screenshot 2024-12-29 180625 Screenshot 2024-12-29 180646 Screenshot 2024-12-29 180728 Screenshot 2024-12-29 180750 Screenshot 2024-12-29 180811 Screenshot 2024-12-29 180833 Screenshot 2024-12-29 180854 Screenshot 2024-12-29 180927 Screenshot 2024-12-29 180958 Screenshot 2024-12-29 181016

About

We will learn Linux Commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published