-
Notifications
You must be signed in to change notification settings - Fork 1
/
Basic_Tools_and_General_Examples.txt
51 lines (35 loc) · 1.17 KB
/
Basic_Tools_and_General_Examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
Creation-Date: 2016-10-22T15:25:38+02:00
====== 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>//