Subscribe to our RSS Feeds

Commands Basic Operating System linux # PART II

0 Comments »
Experiment 5: Using the manual
$ man ls
$ man man
$ man -k file
$ man passwd

Experiment 6: Removing the display
$ clear

Experiment 7: looking for a description anticipates the command containing the keyword in the search
$ apropos date
$ apropos mail
$ apropos telnet

experiment 8: The search for the exact same command with a search key
$ whatis date


experiment 9: Manipulation of the file (files) and directories
> Display the current working directory
$ ls
> See all the complete file
$ ls-l
> Show all hidden files or directories
$ ls-a
> Show all files or directories without the process of sorting
$ ls-f
> Display the contents of the directory something
$ ls / usr
> Display the contents of the root directory
$ ls /
> Show all files or directories with mark mark (/) to a directory, an asterisk (*) for files that are executable, at sign (@) to file a symbolic link, sign (=) for the socket, a sign (%) for the white out and mark (|) to FIFO
$ ls-F / etc

experiment 10: Viewing the file type
$ file
$ file *
$ file / bin / ls

experiment 11: Copying a file
> Copy a file containing the-i option for interactive question if the file already exists
$ cp / etc / group f1
$ ls-l
$ cp -i f1 f2
$ cp -i f1 f2
> Copied to the directory
$ mkdir backup
$ cp f1 f3
$ ls backup
$ cd backup
$ ls

experiment 12: view the contents of the file
> Using the instructions of the paint
$ cat f1
> Display the file to full screen
$ f1 more
$ Pg f1

experiment 13: change the file name
> Using the instructions mv
$ mv f1 prog.txt
$ ls
> Move the file to another directory, if the last argument is the name of the directory so the files will be moved to that directory.
$ mkdir mydir
$ mv f1 f2 f3 mdir

experiment 14: delete the file
$ rm f1
$ cp f1 mydir/f1
$ cp mydir/f2 f2
$ rm f1
$ rm-i f2

experiment 15: looking katay or phrase in the file
$ grep root / etc / passwd
$ grep ": 0:" / etc / passwd
$ grep student / etc / passwd
02.15

0 Responses to "Commands Basic Operating System linux # PART II"

Posting Komentar