Tag Archives: linux command

pwd command tutorial in linux/unix with examples and use cases

linux pwd command – print name of current/working directory Linux pwd command is mainly used to print the full filename of the current working directory. Syntax Options -L, –logical use PWD from environment, even if it contains symlinks -P, –physical … Continue reading

Posted in File & Directory | Tagged , | Comments Off on pwd command tutorial in linux/unix with examples and use cases

cd command tutorial in linux/unix with examples and use cases

linux cd command – switch directory Linux cd command is used to switch the current working directory to dirName. Syntax dirName: can be absolute or relative. If the directory name is omitted, it means to switch to the root directory … Continue reading

Posted in File & Directory | Tagged , , | Comments Off on cd command tutorial in linux/unix with examples and use cases

ls command tutorial in linux/unix with examples and use cases

linux ls command – list directory contents Linux ls command is the most commonly used command in our daily use of linux. ls can not only display the name of each file and directory and its associated information, but also … Continue reading

Posted in File & Directory | Tagged , | Comments Off on ls command tutorial in linux/unix with examples and use cases

rm command tutorial in linux/unix with examples and use cases

linux rm command – remove files or directories The linux rm command can remove each specified file. By default, the rm command cannot remove directories. if you need to remove directories, you need to use parameter. Syntax rm [OPTION]… [FILE]… … Continue reading

Posted in File & Directory | Tagged | Comments Off on rm command tutorial in linux/unix with examples and use cases

Linux common commands tutorial and use examples

Linux Commands Tutorial
1. Linux common directory command list
2. Linux file operations commands
3. Linux file permissions commands
4. Linux file content view commands
5. Linux text processing commands
Continue reading

Posted in File & Directory, Monitor, System, Text Processing | Tagged , , | 1 Comment

How to change permissions folder and all its subfolders and files in linux

Changing the permissions of a folder and its subfolders and files is often used in Linux operations.For example: To change all the directories and files to 755 Continue reading

Posted in File & Directory, How to | Tagged , , | Comments Off on How to change permissions folder and all its subfolders and files in linux

How to stop / remove all containers of docker

How to stop/remove all containers of docker? View all container IDs:~ docker ps -a -q ; Stop all containers:~ docker stop $(docker ps -a -q); Remove all containers:~ docker rm $(docker ps -a -q) Continue reading

Posted in How to | Tagged , | Comments Off on How to stop / remove all containers of docker

How to run Ubuntu system in docker

How to use docker to run the system? This article shares with you examples of searching image, starting image and building container, starting container, closing container, etc. Continue reading

Posted in How to | Tagged , | Comments Off on How to run Ubuntu system in docker

grep command tutorial in linux/unix with examples and use cases

linux grep command – print lines that match patterns Linux grep searches for PATTERNS in each FILE. PATTERNS is one or patterns separated by newline characters, and grep prints each line that matches a pattern. A FILE of “-” stands … Continue reading

Posted in File & Directory | Tagged , , | Comments Off on grep command tutorial in linux/unix with examples and use cases

Printenv command tutorial in linux/unix with examples and use cases

linux printenv command – Print the values ​​of the specified environment VARIABLE (s). If no VARIABLE is specified, print name and value pairs for them all. Continue reading

Posted in System | Tagged , | Comments Off on Printenv command tutorial in linux/unix with examples and use cases

env command tutorial in linux/unix with examples and use cases

The env command executes another program after modifying the environment as specified. When the env is used without parameters, it prints a list of current environment variables. Continue reading

Posted in System | Tagged , | Comments Off on env command tutorial in linux/unix with examples and use cases

tee command tutorial in linux/unix with examples and use cases

linux tee command – read from standard input and write to standard output and files. Copy standard input to each FILE, and also to standard output. Continue reading

Posted in File & Directory | Tagged | Comments Off on tee command tutorial in linux/unix with examples and use cases

How to replace strings in files in the Linux command line

There are many ways to replace strings in Linux. You can use vim/vi to edit files, you can also use the sed command to replace, or you can search for all files to be replaced and replace them. Continue reading

Posted in How to, File & Directory, Sed Command, Text Processing, Vim Command | Tagged , , | Comments Off on How to replace strings in files in the Linux command line

more command tutorial in linux/unix with examples and use cases

linux more command – a filter for paging through text one screenful at a time. Examples: Display file contents starting at line 20, search for strings in files and display … Continue reading

Posted in File & Directory | Tagged , , | Comments Off on more command tutorial in linux/unix with examples and use cases

How to run a script in the background in Linux

This article shares how to run scripts in the background of linux, and how to use the shell’s built-in commands to control scripts during running … Continue reading

Posted in Internet Technology, How to | Tagged , , , | Comments Off on How to run a script in the background in Linux