Update: HTML docs source converted to comment (#21799)
* Update: HTML docs source converted to comment * Update: added cd command in linux->10 simple and useful...
This commit is contained in:
		
				
					committed by
					
						
						Christopher McCormack
					
				
			
			
				
	
			
			
			
						parent
						
							6c43bdee1f
						
					
				
				
					commit
					bed1febd1f
				
			@@ -16,6 +16,7 @@ Example 2: `echo "Hello world" > hello.txt`
 | 
			
		||||
9. `grep` To find lines of text that contain a certain string, use grep. Example: `grep 'root' /etc/passwd # root:x:0:0:root:/root:/bin/bash`
 | 
			
		||||
10. `sed` Use sed to find and change a substring in a piece of text. Example: `echo "this, that, and the other" | sed 's/that/those/' # "this, those, and the other"`
 | 
			
		||||
11. `shutdown` use shut down the system and turn off the power. Example: `shutdown -h now`shuts down system immediately. `shutdown -h +5` shuts down system after five minutes. You can also reboot the system immediately by issuing the command `shutdown -r now`.
 | 
			
		||||
12. `cd` use `cd` to change the directory. Example: `cd dirName` changes the directory to the folder names `dirName`. `cd ..` this command takes to the upper root folder or out of the folder.
 | 
			
		||||
 | 
			
		||||
Use these commands in scripts and at the command line. They're all very powerful commands, and Linux's man page has a lot more information about each one.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user