Basically vi has two modes: a writing mode and a command line mode. cat infilename | tr -d "\r" > outfilename more file read as much as the screen can display and wait untill Enter shows a new line less file the opposit of more Editing/comparing files nano file an easier editor on debian 4 with syntax highlighting set globally in /etc/nanorc vi file complicated but enhanced command line editor with syntax highlighting, auto indent and macro functionality. └── If the file has been edited on a Windows machine it can sometimes add CR/LF (VM) characters on the end of each line (hidden by default on most editors), so #!/bin/sh becomes #!/bin/shVM. Use option -prune to remove empty directories from the output Use option -F to append / to directories and append other characters (read "man tree") Use option -dirsfirst to list directories first directories at first, format trailing slash to directory/, one level down: tree -dirsfirst -FL 1 /etc/ Ls -lap -sort=extension or ls -lap -sort=extension -reverse sort by file extension or in reversed order tree show directory and files as a tree, e.g. ![]() Ls -lap -sort=time or ls -lap -sort=time -reverse sort by time modified or in reversed order Ls -lap -sort=size or ls -lap -sort=size -reverse sort by size or in reversed order also hidden ones, -p to see folders marked with trailing “/” Ls -d */ list only directories in the current path ls -lap to better see all files, -l use long listing, -a list all files/directories, i.e. e/ -regex '.*ä.*\.svg' # find via regex using egrep, finds 8 numbers followed by optional _ followed by at least one number to the end of the search string # e.g.: /var/www/v-dina/w_20160403_0049įind /var/www/ -maxdepth 5 -type d -regextype posix-egrep -regex '.*_' \ ' ' \Ī source helping to understand the Linux file system is: ls -directory */ svg and ä-something in the current subdirectory. # regular expression search: # find a file with extension. Safe handling can be achieved by appending a " - ", e.g. file names starting with a - (dash) will cause errors because a "-string" or "-string" triggers a command line option.to stop or interrupt a command line process immediately type Control-c.grep - (no space after -) then twice ⇄ (tab), it will show all available options that use two dashes ![]() Cookies for statistics With the help of these cookies, we aggregate anonymously collected interactions, for example, to better track various downloads of our products. ⇄ (tab) works for command line options as well, e.g. Absolutely necessary cookies These necessary cookies ensure the functioning and quality of our entire website.if you have typed an “a” and then ⇄ (tab) it will auto-complete all available a… command line programs.use auto-completion via ⇄ (tab) or twice ⇄ (tab):.type Control-r and start typing to retrieve the last commands you have used before, repeat to input Control-r to get the next matching command(s) that match your typing input.ago Posted by Akid0uu TreeSize Free - Extremely fast and portable Harddrive Scanning to find what takes up space jam-software 697 177 177 comments Best Add a Comment AutoModerator 1 yr. 7.1 Changing permission of files/drectories TreeSize Free - Extremely fast and portable Harddrive Scanning to find what takes up space : r/DataHoarder r/DataHoarder 1 yr.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |