Difference between revisions of "CheatSheet"
Views
Actions
Namespaces
Variants
Tools
(Parameter marked) |
(Files) |
||
Line 43: | Line 43: | ||
Displays files and permissions [of directory]{{UserCmd|command=ls -lh [dir]}} | Displays files and permissions [of directory]{{UserCmd|command=ls -lh [dir]}} | ||
=== | === Files and Directories === | ||
changes the working directory {{UserCmd|command=cd [dir]}} | |||
changes to the parent directory {{UserCmd|command=cd ..}} | |||
lists directory contents {{UserCmd|command=ls -l}} | |||
also lists the hidden files {{UserCmd|command=ls -la}} | |||
copies the file {{UserCmd|command=cp [file] [target]}} | |||
copies the directory {{UserCmd|command=cp -r [directory] [target]}} | |||
move/rename target source {{UserCmd|command=mv [source] [target]}} | |||
removes directory '''recursively''' {{UserCmd|command=rm -r [dir]}} | |||
create symbolic link {{UserCmd|command=ln -s [target] [link]}} | |||
mounts file system {{UserCmd|command=mount -t [type] [/dev/sdx9] [mountpoint]}} | |||
mounts iso image {{UserCmd|command=mount -o loop [iso] [mountpoint]}} | |||
home directory of user {{UserCmd|command=cd /home/$USER}} {{UserCmd|command=cd ~}} | |||
directory with global configurations {{UserCmd|command=cd /etc}} | |||
=== Your sub title === | === Your sub title === | ||
=== Your sub title === | === Your sub title === |
Revision as of 18:01, 4 February 2022
CheatSheet for Manjaro
The original startet with a thread at https://forum.manjaro.org/t/manjaro-cli-cheat-sheet/101305/3
Locating and Installing Packages
Update mirrorlist with the fastest mirrors
Check if updates are available
Update all installed packages
Search available packages
Install packages
Uninstall packages
Maintenance
Generate cache list
Purge files not accessed in 100 days
Report journal current size
Remove but recent entries by size or time
Check for orphaned packages
Remove all orphans
Remove all packages except the latest 3 versions
AUR
Search for packages
Build the package
Access rights
Executes command as root
Empties password cache
Edits /etc/sudoers
Changes user password
Changes owner and group of file
Changes the file permissions
Set permissions in octal mode: 4(read) 2(write) 1(execute)
Example: 755 read-write-execute for owner and read-execute for group and others
Displays files and permissions [of directory]
Files and Directories
changes the working directory
changes to the parent directory
lists directory contents
also lists the hidden files
copies the file
copies the directory
move/rename target source
removes directory recursively
create symbolic link
mounts file system
mounts iso image
home directory of user
directory with global configurations
Your sub title
Your sub title
Your sub title
Your sub title
Your sub title
Your sub title
Your sub title 2
Example codes should be here.
See Also
Example Link Title example text