Please enable JavaScript.
Coggle requires JavaScript to display documents.
Linux Commands, Additional Commands, vim hello.html, Tricks, INTELLIJ …
-
Additional Commands
du : how much space a file or a directory takes up, use the du command
-
-
-
-
-
-
-
-
-
-
grep "string" file name : The grep filter searches a file for a particular pattern of characters, and displays all lines that contain that pattern
mount -t [type] [device] [dir] : mount command to attach (mount) file systems and removable devices such as USB flash drives at a particular mount point in the directory tree.
-
gzip <file1> : is a compressing tool, which is used to truncate the file size.
tail : command which prints the last few number of lines (10 lines by default) of a certain file, then terminates
mv : moves files and directories from one directory to another, or renames a file or directory -> mv [Option] source destination
find : search for files within a specific directory and perform subsequent operations -> find index.html
diff file1 file2 : compares two contents of a file line by line. After analyzing them, it will display the parts that do not match
-
-
vim hello.html
-
-
-
-
-
-
-
-
-
'yy' to copy line and 'p' you can paste that line || '2yy' - yank (copy) 2 lines || 'yw' - yank (copy) the characters of the word from the cursor position to the start of the next word
-
'e' - jump forwards to the end of a word
'E' - jump forwards to the end of a word (words can contain punctuation)
'b'- jump backwards to the start of a word
'B' - jump backwards to the start of a word (words can contain punctuation)
-
Tricks
-
-
-
if you cannot remember the rest letters of a command, then double press the tab key. it will show you the relevant codes that starts with letters you typed.
-
-
GIT
add and commit repo
-
-
- git commit -m "first commit"
- git remote add origin https:link
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
ls -lh : shows the file sizes in easily readable formats, such as MB, GB, and TB
-
-
-
It lists, combines, and writes file content to the standard output It reads data from the file and gives their content as output
-
-
-
-
chown command is used to change the file Owner or group. Whenever you want to change ownership you can use chown command. There are three types of ownerships
-
-
-
-
-
-
change file access permissions such as read, write, and access/execute
-
-