[ Prev ] [ Index ] [ Next ]

Basic Tools and General Examples

Created lørdag 22 Oktober 2016


locate

# Search the filesystem with locate
$ pacman -S mlocate


# locate depends on a database to perform its searches.
# Create this database
$ updatedb


# The database is updated daily, but you can at any time update it manually with above command.
# Now you can use locate filename/folder to find files and folders on the system.


htop

# For a more detailed top command (process viewer)
$ pacman -S htop


# Invoke with
$ htop


Create a bootable USB with dd

$ dd bs=4M if=/path/to/image of=/dev/sdX && sync


Symlinks

# Use absolute paths! Etc /home/<user>/folder/file
$ ln -s <file/folder> <target_location>


# To remove a symlink
$ unlink <file/folder>


Tail

# To see the last 10 lines of a file
$ tail <FILE_NAME>


# You can also follow/ track new content (logs etc)
$ tail -f <FILE_NAME>


Network

# Download file
$ wget <URL/FILE>


# Recursive download files
$ wget -r <URL/FILE>